[PD-dev] snprintf vs. sprintf_s?

Patrice Colet pat at mamalala.org
Fri Jan 18 18:02:42 CET 2008


Hi Miller,

Miller Puckette a écrit :
> Hi Devs,
> 
> I found out that .Net apparently doesn't use "snprintf" but has a similar
> function named "sprintf_s".  (A couple of recent patches change "sprintfs"
> to "snprintfs" leading to compile errors in .Net).  I'm thinking of just
> putting the following in s_main.c and s_file.c:
> 
> #ifdef MSW
> #define snprinf sprintf_s
> #endif
> 
> My question: will this break cygwin or some other non-microsoft compiler
> for Windows?
> 
> thanks
> Miller

this doesn't break compilation on cygwin shell (with -mno-cygwin flag)




More information about the Pd-dev mailing list