There's no function to do it for every word.
But you could do it pretty easily.
The problem, is that if you wanted to keep proper capilization you wouldn't
want to
capitalize 'of' and 'the' when they were not at the beginning of the
sentence.
void capitalize_sentence(char *sentence)
{
int i, len;
len = strlen(sentence);
for (i=0; i<len; i++) {
if (i>=1 && sentence[i-1]== ' ')
toupper(sentence[i]);
}
}
Not tested, just made it up.. but something like that would work.
> -----Original Message-----
> From: Keith Mervine [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 28, 2002 1:36 PM
> To: [email protected]
> Subject: Title case
>
>
> Quick string manipulation question...
>
> If I wanted the mud to Title Case the name of a room
> automatically, is
> there a function for that?
>
> eg. ->> in the .are file the room from hell
>
> Id like to mud to show and save via olc
> The Room From Hell
>
> Thanks in advance for any responses :P
> Keith
>
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>