1 |
/* |
/* |
2 |
generate-resources.c - code generator for embedded resources |
generate-resources.c - code generator for embedded resources |
3 |
Copyright (C) 2007 siliconforks.com |
Copyright (C) 2007, 2008, 2009, 2010 siliconforks.com |
4 |
|
|
5 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
6 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
29 |
printf("const unsigned char RESOURCE%d_[] = {\n", i); |
printf("const unsigned char RESOURCE%d_[] = {\n", i); |
30 |
FILE * f = fopen(argv[i], "rb"); |
FILE * f = fopen(argv[i], "rb"); |
31 |
if (f == NULL) { |
if (f == NULL) { |
32 |
|
fprintf(stderr, "cannot open file %s\n", argv[i]); |
33 |
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
34 |
} |
} |
35 |
int c; |
int c; |