Functions

km_bdb_val.c File Reference

Berkeley DB : More...

#include "../../lib/srdb1/db_val.h"
#include "../../lib/srdb1/db_ut.h"
#include "km_db_berkeley.h"
#include "km_bdb_res.h"
#include "km_bdb_val.h"
#include <string.h>
Include dependency graph for km_bdb_val.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file km_bdb_val.c.


Function Documentation

int km_bdb_time2str ( time_t  _v,
char *  _s,
int *  _l 
) [inline]

Convert a time_t value to string (w.o single-quote)

Parameters:
_v source value
_s target string
_l available length and target length
Returns:
-1 on error, 0 on success
Todo:
This functions add quotes to the time value. This should be done in the val2str function, as some databases like db_berkeley don't need or like this at all.

Definition at line 56 of file km_bdb_val.c.