FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 05-24-2008, 07:31 PM
sami25
 
Default mingw-runtime

Hi,
I have a problem with code
Log_Write("%ld", 5);

void Log_Write(char *fmt, ...)
{
va_list ap;
char buf[2048];

if(!logfile.fp) return;
va_start(ap, fmt);
vs/*n*/printf(buf, /*2048, */fmt, ap);
va_end(ap);
printf("vprintf: ");

va_start(ap,fmt);
vprintf(fmt, ap);
va_end(ap);
printf("
vsnprintf: %s
", buf);

Log_UnifyEndOfLine(buf);
fprintf(logfile.fp, buf);
fflush(logfile.fp);
logfile.numwirtes++;
}

the vsprintf is not function properly but if I replace it with _vsnprintf or vsprintf it works ok, vprintf also works ok
I don't know why but vsnprintf does not work with any format with l at the beginnig is there a quick way to fix it loaclly ?
(like recompiling some .a file in mingw runtime)

compiling cmd: i586-mingw32msvc-gcc -g file.c -o file.o

--
sami25

--
Ubuntu-motu mailing list
Ubuntu-motu@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu
 

Thread Tools




All times are GMT. The time now is 01:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org