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