< thwacks own forehead, producing a hollow, echoing sound ... > *sigh* obvious when you point it out. Thanks for the help.
aLUNZ > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf > Of Chris Liechti > Sent: Monday, 31 January 2005 10:55 AM > To: [email protected] > Subject: Re: [Mspgcc-users] Problem with calling variable > argument list functions > > Alan Scott wrote: > > When calling a routine that accepts a variable argument list > > (specifically > > snprintf()) the compiler seems to be generating code that > would not work. > [...] > > snprintf( ucOutBuff, sizeof(ucOutBuff), "Off: 0x%x", usTimeOff ); > > make sure there is a function prototype. in this case, ensure > that you #include <stdio.h> > > the compiler otherwise assumes it's a function accepting int > paramters. > > chris > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > Reporting Tool for open source databases. Create drag-&-drop > reports. Save time by over 75%! Publish reports on the web. > Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
