Subject | udf crashes firebird |
---|---|
Author | Nick Upson |
Post date | 2003-05-19T10:21:47Z |
gratefull thanks to anyone who can tell me why
/* ==============================================================
fn_dowi() return the day of today as integer, Monday = 1, Sun = 7, etc
============================================================== */
int fn_dowi()
{
struct tm tmem, *tbuf = &tmem;
localtime_r(time(NULL), tbuf);
return (tbuf->tm_wday);
}
_________________________________________________________________
Overloaded with spam? With MSN 8, you can filter it out
http://join.msn.com/?page=features/junkmail&pgmarket=en-gb&XAPID=32&DI=1059
/* ==============================================================
fn_dowi() return the day of today as integer, Monday = 1, Sun = 7, etc
============================================================== */
int fn_dowi()
{
struct tm tmem, *tbuf = &tmem;
localtime_r(time(NULL), tbuf);
return (tbuf->tm_wday);
}
_________________________________________________________________
Overloaded with spam? With MSN 8, you can filter it out
http://join.msn.com/?page=features/junkmail&pgmarket=en-gb&XAPID=32&DI=1059