MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / db_time2str

Function db_time2str

db/db_ut.c:240–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239
240inline int db_time2str(time_t _v, char* _s, int* _l)
241{
242 if ((!_s) || (!_l) || (*_l < 2)) {
243 LM_ERR("Invalid parameter value\n");
244 return -1;
245 }
246
247 *_s++ = '\'';
248
249 if (db_time2str_nq(_v, _s, _l)!=0)
250 return -1;
251
252 *(_s + *_l) = '\'';
253 *_l += 2;
254
255 return 0;
256}
257
258
259/*

Callers 4

db_mysql_val2strFunction · 0.85
db_unixodbc_val2strFunction · 0.85
db_sqlite_val2strFunction · 0.85
db_postgres_val2strFunction · 0.85

Calls 1

db_time2str_nqFunction · 0.85

Tested by

no test coverage detected