how would i convert a small chr at the start of a string into a capital with out converting the rest of the letters after the first into capitals as well ?
thanks newbie
how would i convert a small chr at the start of a string into a capital with out converting the rest of the letters after the first into capitals as well ?
thanks newbie
Last edited by hlens; 11-08-2001 at 05:01 PM.
Use toupper() - include cctype and csdtlib -
char a[]="zen";
a[0]=toupper(a[0]);
zen