FSfopenpgm Function

Microchip MDD File System Interface

MDDFS Interface Library Help
FSfopenpgm Function
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.

Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.