Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
#include <ctype.h>
#include <stdio.h>
 
isLow(char *str)
{
        if(str != NULL)
        {
                char *p;
                for(p = str; *p != '\0'; p++)
                {
                        *p = islower((unsigned) (*p));
                }
        }
}
 
 
int main(void){
 
char str[] = "mot";
 
if(isLow(str)) printf("%s is in lowercase", str);
return 0
}
Cette fonction est pour verifier si le mot est en minuscule. Ya t-il qqchose a corriger dans la fonction isLow ?