OLD | NEW |
1 /* $Id: genstring.c 1827 2007-04-22 05:09:49Z peter $ | 1 /* |
2 * | 2 * |
3 * Generate array-of-const-string from text file. | 3 * Generate array-of-const-string from text file. |
4 * | 4 * |
5 * Copyright (C) 2006-2007 Peter Johnson | 5 * Copyright (C) 2006-2007 Peter Johnson |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
11 * notice, this list of conditions and the following disclaimer. | 11 * notice, this list of conditions and the following disclaimer. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 fclose(in); | 93 fclose(in); |
94 } | 94 } |
95 | 95 |
96 fprintf(out, "};\n"); | 96 fprintf(out, "};\n"); |
97 fclose(out); | 97 fclose(out); |
98 | 98 |
99 free(str); | 99 free(str); |
100 | 100 |
101 return EXIT_SUCCESS; | 101 return EXIT_SUCCESS; |
102 } | 102 } |
OLD | NEW |