10 int main(
int argc,
char** argv)
15 printf(
"<input stdhep filename> <output stdhep basename> <number of events per file>\n");
18 int n_events = atoi(argv[3]);
19 printf(
"Reading %d events from %s\n", n_events, argv[1]);
27 sprintf(outputname,
"%s_%d.stdhep", argv[2], j);
28 printf(
"Writing to %s\n", outputname);
32 for (
int i = 0; i < n_events; i++)
36 printf(
"End of file\n");
37 printf(
"Last output file contains %d events\n", n_events);
44 printf(
"ilbl = %d\n", ilbl);
int main(int argc, char **argv)
int StdHepXdrReadInit(char *filename, int ntries, int ist)
int StdHepXdrWrite(int ilbl, int ist)
int StdHepXdrRead(int *ilbl, int ist)
void StdHepXdrEnd(int ist)
int StdHepXdrWriteOpen(char *filename, char *title, int ntries, int ist)