SW006013 Microchip Technology, SW006013 Datasheet - Page 95

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.
MB_CUR_MAX
Description:
Include:
Value:
NULL
Description:
Include:
RAND_MAX
Description:
Include:
Value:
abort
Description:
Include:
Prototype:
Remarks:
Example:
Maximum number of characters in a multibyte character
<stdlib.h>
1
The value of a null pointer constant
<stdlib.h>
Maximum value capable of being returned by the rand function
<stdlib.h>
32767
Aborts the current process.
<stdlib.h>
void abort(void);
abort will cause the processor to reset.
#include <stdio.h>
#include <stdlib.h> /* for abort
int main(void)
{
}
Output:
Cannot open samp.fil
ABRT
FILE *myfile;
if ((myfile = fopen("samp.fil", "r")) == NULL)
{
}
else
fclose(myfile);
printf("Cannot open samp.fil\n");
abort();
printf("Success opening samp.fil\n");
/* for fopen, fclose, */
/* printf, FILE, NULL */
DS51456E-page 91
*/

Related parts for SW006013