<tt>probleme je ne compredns pas pourkoi ca renvoye pas la bonne chose
#include <stdio.h>
#include <stdlib.h>
//lit le fichier caractere par caractere//
void RLEcomp(){
int k;
char c,p='\0';
while((c=fgetc(stdin))!=EOF){
if (c==p){
k+=1;
}
else{
if(k!=1 || k==1) {
printf("^%c%d\n",p,k);
k=1;
}
}
}
p=c;
}
//////////////////////////////////////////
int main(){
printf("coucouc\n");
RLEcomp();
return 0;
}</tt>