Re: [CODE] uppercase strings

From: Torgny Bjers (tb@sbbs.se)
Date: 07/18/00


Juliano wrote:
>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! :-)


Hey, it worked now!  Thank you kindly!  I used it for my hedit.c when I save
the help file, to make the entry keywords uppercase regardless of what
sloppy users might have saved with hedit... :)

Regards,
Torgny Bjers (Artovil)


     +------------------------------------------------------------+
     | 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