#include <cybiko.h>
...
void trace2logfile(char* sz_format, ...)
{
va_list parameters;
char sz_buffer[64];
struct FileOutput* ptr_log_file;
va_start( parameters, sz_format );
vsprintf( sz_buffer, sz_format, parameters );
va_end( parameters );
ptr_log_file = (struct FileOutput*)malloc( sizeof( struct FileOutput ) );
FileOutput_ctor_Ex( ptr_log_file, "error.log", TRUE );
FileOutput_seekp( ptr_log_file, 0, SEEK_END );
FileOutput_write( ptr_log_file, sz_buffer, strlen(sz_buffer) );
FileOutput_dtor( ptr_log_file, FREE_MEMORY );
}
...