extern void (*logwrite)( const char *, ...) ;