[openbeosnetteam] Re: snprintf

Yes, should be fine.

How many places have you come across it?

david

----- Original Message ----- 
From: "Nathan Whitehorn" <nathan.whitehorn@xxxxxxxxxxx>
To: <openbeosnetteam@xxxxxxxxxxxxx>
Sent: Sunday, May 19, 2002 3:35 PM
Subject: [openbeosnetteam] snprintf


> 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"
> 
> 
> 


Other related posts: