Re: return a string
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Sat, 30 Apr 2005 19:40:35 GMT
"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.
.
- References:
- re:return a string
- From: iru_muzgo
- re:return a string
- From: Emmanuel Delahaye
- re:return a string
- Prev by Date: Re: a few doubts!
- Next by Date: Re: return a string
- Previous by thread: re:return a string
- Next by thread: Re: return a string
- Index(es):