SW006014 Microchip Technology, SW006014 Datasheet - Page 199

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

Specifications of SW006014

Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2008 Microchip Technology Inc.
write
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
Write data to a file.
None
int write(int handle, void *buffer,
handle
buffer
count
If successful, write returns the number of characters actually written. A
return value of ‘-1’ indicates an error.
If the actual space remaining on the disk is less than the size of the
buffer the function is trying to write to the disk, write fails and does not
flush any of the buffer's contents to the disk. If the file is opened in text
mode, each linefeed character is replaced with a carriage return – line-
feed pair in the output. The replacement does not affect the return
value.
This is a helper function called by the Standard C Library function
fflush().
As distributed, the parameters are passed to the host file system
through the simulator. The return value is the value returned by the host
file system.
write.c
unsigned int count);
refers to an opened file
points to the storage location of data to be written
the number of characters to write.
DS51456E-page 195

Related parts for SW006014