Why is this.. 

char * src = " 12345678"
char dest[4];

StrNCopy ( dest, src, 2 );

will properly fill dest with with 12 and a null terminator on a debug rom.
but on a release rom it adds in garbage after 12

so i called

StrNCopy ( dest, "" );
StrNCat ( dest, src, 3 ); and it works fine.. 

Philip Streck
Akron General Medical Center
Information Systems


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to