-

         

[Y81] [n2k82]


 2.25 , .

 21.25.  ElByECC.DLL

/*----------------------------------------------------------------------------

*

* ElByECC.DLL

* ========================

*

* ElByECC.DLL,

* - ,

* .

*

* ( - 6)

----------------------------------------------------------------------------*/

#include <stdio.h>

#include "ElByECC.h" //

#define _DEF_DMG 6 //

#define N_BYTES_DAMAGE ((argc>1)?atol(argv[1]):_DEF_DMG) //

// ?

main(int argc, char **argv)

{

int a;

char stub_head[HEADER_SIZE]; //

char user_data[USER_DATA_SIZE]; // .

struct RAW_SECTOR_MODE1 raw_sector_for_damage; //

struct RAW_SECTOR_MODE1 raw_sector_for_compre; // .

// TITLE

//------------------------------------------------------------------------

printf("= ElByECC.DLL usage demo example by KK\n");

//

//------------------------------------------------------------------------

printf("user data initialize...............");

for (a = 0; a < USER_DATA_SIZE; a++) user_data[a] = a; // user_data init

memset(stub_head, 0, HEADER_SIZE); stub_head[3] = 1; // src header init



    







Forekc.ru
, , , , , , , , , ,