Разработка ПО различной степени сложности
#include
#include
#include
int
main (int argc, char *argv[])
{
FontRec font;
FontFilePtr input, output;
char *input_name = NULL, *output_name = NULL;
char *program_name;
int bit, byte, glyph, scan;
bzero(&font, sizeof(FontRec));
FontDefaultFormat (&bit, &byte, &glyph, &scan);
program_name = argv[0];
argc--, argv++;
while (argc-- > 0) {
if (argv[0][0] == '-') {
switch (argv[0][1]) {
case 'p':
switch (argv[0][2]) {
case '1':
case '2':
case '4':
case '8':
if (argv[0][3] != '�')
goto usage;
glyph = argv[0][2] - '0';
break;
default:
goto usage;
}
break;