SW006013 Microchip Technology, SW006013 Datasheet - Page 81

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2008 Microchip Technology Inc.
remove
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
rename
Description:
Include:
Prototype:
Arguments:
Return Value:
Remarks:
Example:
Deletes the specified file.
<stdio.h>
int remove(const char *filename);
filename
Returns 0 if successful, -1 if not.
If filename does not exist or is open, remove will fail.
#include <stdio.h> /* for remove, printf */
int main(void)
{
}
Output:
File removed
Renames the specified file.
<stdio.h>
int rename(const char *old, const char *new);
old
new
Return 0 if successful, non-zero if not.
The new name must not already exist in the current working directory,
the old name must exist in the current working directory.
#include <stdio.h> /* for rename, printf */
int main(void)
{
}
Output:
File renamed
if (remove("myfile.txt") != 0)
else
if (rename("myfile.txt","newfile.txt") != 0)
else
printf("Cannot remove file");
printf("File removed");
printf("Cannot rename file");
printf("File renamed");
name of file to be deleted.
pointer to the old name
pointer to the new name.
DS51456E-page 77

Related parts for SW006013