Re: return a string



"Emmanuel Delahaye" <emdel@xxxxxxxxxxxxxx> writes:
> (supersedes <mn.f21f7d549c42ea38.15512@xxxxxxxxxxxxxx>)
>
> iru_muzgo wrote on 29/04/05 :
>> void
>> ptr_tralha(char *s)
>> {
>> while (*s != '\0') /* while the contents of s are
>> different * from NULL */
>
> NULL is off-topic here.

NULL isn't off-topic, it's merely wrong.

> You meant 0.

Yes, or '\0'.

[snip]

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.