| 33 |
|
|
| 34 |
#include <err.h> |
#include <err.h> |
| 35 |
#include <errno.h> |
#include <errno.h> |
|
#include <fcntl.h> |
|
| 36 |
#include <locale.h> |
#include <locale.h> |
| 37 |
#include <stdint.h> |
#include <stdint.h> |
| 38 |
#include <stdio.h> |
#include <stdio.h> |
| 90 |
} |
} |
| 91 |
|
|
| 92 |
/* need at least one .nfo file to parse */ |
/* need at least one .nfo file to parse */ |
| 93 |
// if (!argc) |
if (!argc) |
| 94 |
// usage(); |
usage(); |
| 95 |
|
|
| 96 |
/* if the output file exists, remove it */ |
/* if the output file exists, remove it */ |
| 97 |
if (unlink(ofile) && (errno != ENOENT)) |
if (unlink(ofile) && (errno != ENOENT)) |
| 114 |
ctp->catname, ctp->catdesc); |
ctp->catname, ctp->catdesc); |
| 115 |
} |
} |
| 116 |
|
|
| 117 |
|
/* parse input */ |
| 118 |
|
|
| 119 |
|
while (*argv) |
| 120 |
|
pfile(*argv++); |
| 121 |
|
|
| 122 |
/* … */ |
/* … */ |
| 123 |
|
|
| 124 |
D(1, "finishing...\n"); |
D(1, "finishing...\n"); |