Hi NG
yes you were right, vnstrcpy is not a standart routine. I'm using it for so long I don't even know where I got it from. StrCopy does mostly the same, but below you find the source of VNStrCpy. feel free to use it.
Christian Lindemeier
UInt16 VNStrCpy(char* dest,const char* src,UInt16 len)
{
UInt16 i;if (dest == 0) // Validates input parameter
return(0);
if (src == 0) // Validates input parameter
{
dest[0] = 0; // Null terminated string
return(0);
};
for(i=0; i<len; i++)
{
if (src[i])
dest[i] = src[i];
else
break;
};
dest[i] = 0; // Null terminated string
return(i); // Returning the length of the copy
} /* End of VNStrCpy() */
NGrant.com wrote:
Hi Christian
I noticed in your sample code a call to VNStrCpy, where do I find this routine ?
Is it a routine of yours ?
Thanks NG
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
