I understood it as the original string (which by definition is null terminated) needed the '\n' replaced with '\0' If it was not null terminated, it would be a character array. Still, searching until '\n' is reached is an accident waiting to happen.
----- Original Message ----- From: "Joe Programmer" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 12:35 PM Subject: Re: String without \n...... > > I think he meant the original string had no '\0' at the end, only a > '\n'. If so, your suggestion would not work. > > His example was: > e.g. "00000103\n" -> "00000103\0" > > If he meant the source string was > '0','0','0','0','0','1','0','3','\n' > > then it won't work, but if he meant it was > '0','0','0','0','0','1','0','3','\n','\0' > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
