diff --git a/bdf2c.c b/bdf2c.c index 3de1799..46583ba 100644 --- a/bdf2c.c +++ b/bdf2c.c @@ -17,7 +17,7 @@ /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the /// GNU Affero General Public License for more details. /// -/// $Id: $ +/// $Id$ ////////////////////////////////////////////////////////////////////////////// #include @@ -52,20 +52,20 @@ void CreateFontHeaderFile(FILE * out) // // Read BDF font file. // -void ReadBdf(FILE* bdf) +void ReadBdf(FILE * bdf) { - char linebuf[1024]; - char *s; + char linebuf[1024]; + char *s; - for (;;) { - if ( !fgets(linebuf, sizeof(linebuf), bdf) ) { // EOF - break; - } - if ( !(s = strtok(linebuf, " \t\n\r")) ) { // empty line - break; - } - printf("token:%s\n", s); + for (;;) { + if (!fgets(linebuf, sizeof(linebuf), bdf)) { // EOF + break; } + if (!(s = strtok(linebuf, " \t\n\r"))) { // empty line + break; + } + printf("token:%s\n", s); + } } ////////////////////////////////////////////////////////////////////////////// @@ -85,10 +85,8 @@ void PrintVersion(void) // void PrintUsage(void) { - printf("Usage: bdf2c [OPTIONs]\n" - "\t-c\tCreate font header on stdout\n" - "\t-C file\tCreate font header file\n" - ); + printf("Usage: bdf2c [OPTIONs]\n" "\t-c\tCreate font header on stdout\n" + "\t-C file\tCreate font header file\n"); printf("\tOnly idiots print usage on stderr\n"); }