Subject udf crashes firebird
Author Nick Upson
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