16 lines
505 B
C
16 lines
505 B
C
|
|
// IFPQYY | Tóth Dániel Mátyás | V2
|
||
|
|
#pragma once
|
||
|
|
#define MYBUFSIZE 8192
|
||
|
|
#define MYMAXVALUE 65535
|
||
|
|
#define MYMAXFILES 5
|
||
|
|
#define MYMAXFN 128
|
||
|
|
#define OK 0
|
||
|
|
#define NOK (-1)
|
||
|
|
int GetFilenames(int argc, char* argv[],
|
||
|
|
char infilenames[MYMAXFILES][MYMAXFN],
|
||
|
|
char outfilenames[MYMAXFILES][MYMAXFN]);
|
||
|
|
int SortFile(char* infn, char* outfn, unsigned char* buf,
|
||
|
|
unsigned short* pmin, unsigned short* pmax,
|
||
|
|
unsigned short* pavg, unsigned short* pn,
|
||
|
|
unsigned short bufsize = MYBUFSIZE, bool test = false);
|