Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int ac, char **argv){
- if(ac != 2){
- printf("Argument manquant...");
- return 0;
- }
- FILE *f = fopen(argv[1], "r+b");
- if (f == NULL){
- printf("Erreur à l'ouverture du fichier...");
- return 0;
- }
- fseek(f, 244, 0);
- int buffer = 16;
- fwrite(&buffer, sizeof(buffer), 1, f);
- //fprintf (f, buffer);
- fclose(f);
- printf("Job done... tchuss.");
- return 0;
- }
Add Comment
Please, Sign In to add comment