SW006014 Microchip Technology, SW006014 Datasheet - Page 40

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
DS51456E-page 36
SIGSEGV
Description:
Include:
Prototype:
Remarks:
Example:
SIGTERM
Description:
Include:
Prototype:
Remarks:
Example:
Signals invalid access to storage.
<signal.h>
#define SIGSEGV
SIGSEGV is used as an argument for raise and/or signal. When
used, the default behavior is to print an invalid storage request mes-
sage and terminate the calling program. This may be overridden by a
user function that defines the signal handler actions. See signal for
an example of a user defined function.
#include <signal.h> /* for raise, SIGSEGV */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
SEGV
Explanation:
SEGV stands for “invalid storage access”.
Signals a termination request
<signal.h>
#define SIGTERM
SIGTERM is used as an argument for raise and/or signal. When
used, the default behavior is to print a termination request message
and terminate the calling program. This may be overridden by a user
function that defines the signal handler actions. See signal for an
example of a user defined function.
#include <signal.h> /* for raise, SIGTERM */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
TERM
Explanation:
TERM stands for “termination request”.
raise(SIGSEGV);
printf("Program never reaches here.");
raise(SIGTERM);
printf("Program never reaches here.");
© 2008 Microchip Technology Inc.

Related parts for SW006014