A
Ahsan
Hi All,
I am having prolems with converting upper case characters to lower
case in Unix's C. I saw the man pages and "tolower" function does it.
But in my case its not working.
My code is as follows:
============================================================
gets ( input );
sscanf(input, "%s", Cmd);
for( p = 0; p < strlen( Cmd ); p++ )/* Changing all input to lower
characters */
{
printf("hello in loop");
if( isupper( Cmd[p] ) )
{
_tolower( Cmd[p] );
printf("%c", Cmd[p]);
}
}
=============================================================
Anxiously Waiting for reply,
Regards,
I am having prolems with converting upper case characters to lower
case in Unix's C. I saw the man pages and "tolower" function does it.
But in my case its not working.
My code is as follows:
============================================================
gets ( input );
sscanf(input, "%s", Cmd);
for( p = 0; p < strlen( Cmd ); p++ )/* Changing all input to lower
characters */
{
printf("hello in loop");
if( isupper( Cmd[p] ) )
{
_tolower( Cmd[p] );
printf("%c", Cmd[p]);
}
}
=============================================================
Anxiously Waiting for reply,
Regards,