char * pos;

pos = StrChr(string, '\r');
if (pos) *pos = 0;

On 28/10/06, Greg <[EMAIL PROTECTED] > wrote:
Is there an easy way to swap a return character in a string for a NULL?

Having a brain fart and I can't come up with a good way to do this.

Thanks

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

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

Reply via email to