On Thu, 30 Aug 2001, Mike Breuer wrote: > In any new files that I create, I no longer use tildes to terminate > long strings. Instead, I use a single line by parsing off > cr/lf/tab/etc and translating them to \r, \n, \t using the following > functions: This confused me for a minute. I believe you mean that you translate C-style escape sequences on read and quote the characters to such sequences on write. Correct me if I'm wrong. > while(source) { Minor quibble. You probably want *source. Then you can get rid of the NUL case in switch. There is no point in doing "while (source)" because the pointer will never become NULL in the body of the while statement. While this case does prevent a crash if the functions are called with a NULL source, that case is better handled by an explicit 'if' statement. -dak -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST