11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The subject sequence is defined as the longest initial subsequence of the input string,starting with the first non-white-space character, that is of the expected <strong>for</strong>m. Thesubject sequence contains no characters if the input string is empty or consists entirelyof white space, or if the first non-white-space character is other than a sign or apermissible letter or digit.If the subject sequence has the expected <strong>for</strong>m and the value of base is zero, thesequence of characters starting with the first digit is interpreted as an integer constant.If the subject sequence has the expected <strong>for</strong>m and the value of base is between 2 and36, it is used as the base <strong>for</strong> conversion.If the subject sequence begins with a minus sign, the value resulting from theconversion is negated.A pointer to the final string is stored in the object pointed to by endptr, provided thatendptr is not a null pointer.If the subject sequence is empty or does not have the expected <strong>for</strong>m, no conversion isper<strong>for</strong>med, the value of nptr is stored in the object pointed to by endptr, provided thatendptr is not a null pointer.strtoull returns the converted value, if any. If no conversion could be per<strong>for</strong>med, zerois returned. If the correct value is outside the range of representable values,LLONG_MAX (page 250) or ULLONG_MAX (page 252) is returned according to thesign of the value, if any, and the value of the macro ERANGE is stored in errno (page247).Portabilitystrtoull con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).ultoaSynopsisDescription#include char *ulltoa(unsigned long long val, char *buf, int radix);ulltoa converts val to a string in base radix and places the result in buf.ulltoa returns buf as the result.If radix is greater than 36, the result is undefined.Portability ulltoa is an extension to the standard C library provided by <strong>CrossWorks</strong> C.See Also itoa (page 299) ltoa (page 301) lltoa (page 300) ultoa (page 309) utoa (page 310)ultoaSynopsis#include char *ultoa(unsigned long val, char *buf, int radix);Chapter 28 - General utilities309

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

Saved successfully!

Ooh no, something went wrong!