[openbeosnetteam] snprintf
- From: "Nathan Whitehorn" <nathan.whitehorn@xxxxxxxxxxx>
- To: openbeosnetteam@xxxxxxxxxxxxx
- Date: Sun, 19 May 2002 10:35:17 EDT (-0400)
Metrowerks stdlib, for reasons I can't even begin to fathom, doesn't
have snprintf(). Therefore, I have been doing things like this when I
run across one:
#ifdef _MWERKS_STDIO_H
sprintf(buf,"%s.%s",a,b);
#else
snprintf(buf,255,"%s.%s",a,b);
#endif
Is this all right?
-Nathan
--
Fortune Cookie Says:
There are four kinds of homicide: felonious, excusable, justifiable,
and praiseworthy ...
-- Ambrose Bierce, "The Devil's Dictionary"
- Follow-Ups:
- [openbeosnetteam] Re: snprintf
- From: David Reid
Other related posts:
- [openbeosnetteam] Re: snprintf
- From: David Reid