C
FSFILE * FSfopenpgm( const rom char * fileName, const rom char * mode );
Description
The FSfopenpgm function will copy a PIC18 ROM fileName and mode argument into RAM arrays, and then pass those arrays to the FSfopen function.
Preconditions
For read modes, file exists; FSInit performed
Parameters
Parameters |
Description |
fileName |
The name of the file to be opened (ROM) |
mode |
The mode the file will be opened in (ROM) |
Return Values
Return Values |
Description |
FSFILE * |
A pointer to the file object |
NULL |
File could not be opened |
Side Effects
The FSerrno variable will be changed.
Remarks
This function is for use with PIC18 when passing arguments in ROM.