Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned char *tab=(unsigned char*)malloc(MAX * sizeof(unsigned char));
- if(tab ==NULL){
- fprintf(stderr, "Not enough memory !\n");
- return NULL;
- }
- if(fichier == NULL){
- fprintf(stderr, "Error, file missing\n");
- exit(1);
- }
- else{
- int c;
- int i=0;
- while((c=fgetc(fichier))!=EOF){
- if(c!=' '){
- tab[i]=c;
- printf("%c--",c);
- i++;
- }
- }
- }
- return tab;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement