01.08.2012, 11:02
pawn Код:
islower(character)
{
if(character >= 'A' && character <= 'Z')
return 0;
return 1;
}
// returns 0 if character is in uppercase, else returns 1
// Example:
new c[4] = "Abc";
printf("%d", islower(c[0]));
// Output: 0
pawn Код:
isupper(character)
{
if(character >= 'a' && character <= 'z')
return 0;
return 1;
}
// returns 0 if character is in lowercase, else returns 1
// Example:
new c[4] = "Abc";
printf("%d", islupper(c[0]));
// Output: 1