]> git.saurik.com Git - apple/security.git/blob - SecurityTests/cspxutils/genErrorStrings/fileIo.h
Security-57031.10.10.tar.gz
[apple/security.git] / SecurityTests / cspxutils / genErrorStrings / fileIo.h
1 /*
2 * Read entire file.
3 */
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 int readFile(
9 const char *fileName,
10 unsigned char **bytes, // mallocd and returned
11 unsigned *numBytes); // returned
12
13 int writeFile(
14 const char *fileName,
15 const unsigned char *bytes,
16 unsigned numBytes);
17
18 #ifdef __cplusplus
19 }
20 #endif