> "Charles Rezsonya" <[EMAIL PROTECTED]> wrote: > > if i want to place the CR/LF pair on the end of a string/buffer, what method > > is the best to use? From: "Roger Chaplin" <[EMAIL PROTECTED]> > If it's truly a string (i.e. null-terminated), how about > StrCat(str, "\r\n"); > If it's a buffer and you know that there is len amount of stuff in it, > buffer[len] = '\r'; > buffer[len+1] = '\n'; On the other hand, if you are going to display the string on a Palm device, the '\r' is not needed. You can just use '\n' by itself. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
