13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>stdio.hperror(*s)DescriptionPrints s and the error message belonging to the integer errno. (SeeSection 13.2.6, errno.h )13.2.24. stdlib.h and wchar.hThe header file stdlib.h contains general utility functions which fall into the following categories (Somehave parallel wide-character, declared in wchar.h)• Numeric conversions• Random number generation• Memory management• Environment communication• Searching and sorting• Integer arithmetic• Multibyte/wide character and string conversions.MacrosEXIT_SUCCES0EXIT_FAILURE1RAND_MAX32767MB_CUR_MAX 1Numeric conversionsPredefined exit codes that can be used in the exit function.Highest number that can be returned by the rand/srand function.Maximum number of bytes in a multibyte character <strong>for</strong> the extended character setspecified by the current locale (category LC_CTYPE, see Section 13.2.14, locale.h).The following functions convert the initial portion of a string *s to a double, int, long int and longlong int value respectively.doubleintlonglong longatof(*s)atoi(*s)atol(*s)atoll(*s)The following functions convert the initial portion of the string *s to a float, double and long double valuerespectively. *endp will point to the first character not used by the conversion.764

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!