you can build our own StrNPrintF fuction, with the StrVPrintF, the code
would be something like this:
#include <stdarg.h>
void StrNPrintF(CharPtr s,UInt size, CharPtr formatStr, ...)
{
va_list args;
Char text[size];
va_start(args, formatStr);
StrVPrintF(text, formatStr, args);
va_end(args);
StrNCopy(s, text, size);
}
hope this might give you and idea, you also shoud alloc the memory instead
of creating a local buffer in order not to overflow the stack.
Ariel.
----- Original Message -----
From: Charles Rezsonya <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 31, 1999 11:18 AM
Subject: StrPrintF
> the use of StrPrintF is quite nice, i have some message construction used
> in a protocol and stuff, but i find it sorrowing that i can't utilize the
> N. as an example, if i was to do strCat's or StrCopy's i can protect
> myself more with StrNCat's and StrNCopy's, but there are no StrNPrintF's.
> has anyone or does anyone have a good idea to use StrPrintF but have a N
> equivilent (or any related call's?)
>
>
>
>