MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
16-Bit C <strong>Compiler</strong> User’s Guide<br />
A.16 LIBRARY FUNCTIONS<br />
Implementation-Defined Behavior <strong>for</strong> Library Functions is covered in section G.3.14 of<br />
the ANSI C St<strong>and</strong>ard.<br />
What is the null pointer constant to which the macro NULL exp<strong>and</strong>s? (ISO 7.1.5)<br />
0.<br />
How is the diagnostic printed by the assert function recognized, <strong>and</strong> what is the<br />
termination behavior of this function? (ISO 7.2)<br />
The assert function prints the file name, line number <strong>and</strong> test expression, separated by<br />
the colon character (‘:’). It then calls the abort function.<br />
What characters are tested <strong>for</strong> by the isalnum, isalpha, iscntrl, islower, isprint <strong>and</strong><br />
isupper functions? (ISO 7.3.1)<br />
TABLE A-5: CHARACTERS TESTED BY IS FUNCTIONS<br />
Function Characters tested<br />
isalnum One of the letters or digits: isalpha or isdigit.<br />
isalpha One of the letters: islower or isupper.<br />
iscntrl One of the five st<strong>and</strong>ard motion control characters, backspace <strong>and</strong> alert:<br />
\f, \n, \r, \t, \v, \b, \a.<br />
islower One of the letters ‘a’ through ‘z’.<br />
isprint A graphic character or the space character: isalnum or ispunct or<br />
space.<br />
isupper One of the letters ‘A’ through ‘Z’.<br />
ispunct One of the characters: ! " # % & ' ( ) ; < = > ? [ \ ] * + , - . / : ^<br />
What values are returned by the mathematics functions after a domain errors?<br />
(ISO 7.5.1)<br />
NaN.<br />
Do the mathematics functions set the integer expression errno to the value of the<br />
macro ERANGE on underflow range errors? (ISO 7.5.1)<br />
Yes.<br />
Do you get a domain error or is zero returned when the fmod function has a second<br />
argument of zero? (ISO 7.5.6.4)<br />
Domain error.<br />
DS51284H-page 136 © 2008 <strong>Microchip</strong> Technology Inc.