X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=exo3%2Fexo3.c;h=03d6390a3e56777b072fc06fc5405db06506881a;hb=0cd9f5da6c770e971c3156cabdb0d2e627338ab2;hp=89170ea09430b75907e4bec4b994bb8254ec1eeb;hpb=7322663824e9546841b3e50e6fbd3cc8b9027165;p=TD_C.git diff --git a/exo3/exo3.c b/exo3/exo3.c index 89170ea..03d6390 100644 --- a/exo3/exo3.c +++ b/exo3/exo3.c @@ -32,7 +32,7 @@ void permAlphaChar(char* str, int key) { char alphabet[26] = "abcdefghijklmnopqrstuvwxyz"; int str_length = stringLength(str); - for (int i; i < str_length; i++) { + for (int i = 0; i < str_length; i++) { //if (str[i] == ' ') continue; for (int j = 0; j < 26; j++) { if (str[i] == alphabet[j]) {