| 922 | } |
| 923 | |
| 924 | void fxWriteCData(FILE* file, void* data, txSize size) |
| 925 | { |
| 926 | unsigned char* p = data; |
| 927 | unsigned char c; |
| 928 | fprintf(file, "\""); |
| 929 | while (size) { |
| 930 | c = *p; |
| 931 | fprintf(file, "\\x%.2x", c); |
| 932 | p++; |
| 933 | size--; |
| 934 | } |
| 935 | fprintf(file, "\""); |
| 936 | } |
| 937 | |
| 938 | void fxWriteCString(FILE* file, txString string) |
| 939 | { |