FSfprintf Function

MDD File System Interface Library

MDDFS Interface Library Help
FSfprintf Function
C
int FSfprintf(
    FSFILE * fptr, 
    const rom char * fmt, 
    ...
);
Description

Writes a specially formatted string to a file.

Preconditions

For PIC18, integer promotion must be enabled in the project build options menu. File opened in a write mode.

Parameters
Parameters 
Description 
fptr 
A pointer to the file to write to. 
fmt 
A string of characters and format specifiers to write to the file 
... 
Additional arguments inserted in the string by format specifiers 
Returns

The number of characters written to the file

Side Effects

The FSerrno variable will be changed.

Remarks

Consult AN1045 for a full description of how to use format specifiers.

Microchip MDD File System Interface 1.4.2 - [Oct 15, 2012]
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.