First commit 13/02/1995
This commit is contained in:
30
CIV2T.CPP
Normal file
30
CIV2T.CPP
Normal file
@ -0,0 +1,30 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
void main( int argc, char *argv[] )
|
||||
{
|
||||
char c;
|
||||
FILE *f;
|
||||
long longw = 0xABCDEF01;
|
||||
|
||||
if ( argc != 2 || (f = fopen( argv[1], "a+b" )) == NULL )
|
||||
{
|
||||
printf( "Fichero %s no existe...\n\n", argv[1] );
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
c = 4;
|
||||
fseek( f, 0x14 , SEEK_SET );
|
||||
fwrite( &c, sizeof(char), 1, f );
|
||||
c = 0;
|
||||
fseek( f, 0x14FD , SEEK_SET );
|
||||
fwrite( &c, sizeof(char), 1, f );
|
||||
fseek( f, 0x1A71 , SEEK_SET );
|
||||
fwrite( &c, sizeof(char), 1, f );
|
||||
fseek( f, 0x242C1 , SEEK_SET );
|
||||
fwrite( &c, sizeof(char), 1, f );
|
||||
|
||||
fclose(f);
|
||||
|
||||
}
|
Reference in New Issue
Block a user