Re: [CODE]

From: Juliano Ravasi Ferraz (jferraz@linkway.com.br)
Date: 07/18/00


James wrote:
>
> Just some input...
>
> > char *all_upercase(char *txt)
> > {
> >   char *ptr;
>
> >   for (ptr = txt; ptr; ptr++)
> This loop might go beyond the line's actual limitations, since you're
> checking whether ptr != 0, and not whether ptr's value is != 0:
> I think the line you're looking for is:
>     for (ptr = txt; *ptr; ptr++)

Oops, you are right!
Thank's! :-)

--
----=[ Juliano Ravasi Ferraz ]=----=[ jferraz@linkway.com.br ]=----
     Rayon Eletrônica e Informática Ltda. - Linkway Descalvado

Dogs come when you call. Cats have answering machines.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT