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.

Descriptionultoa converts val to a string in base radix and places the result in buf.ultoa returns buf as the result.If radix is greater than 36, the result is undefined.Portability ultoa 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)utoaSynopsisDescription#include char *utoa(unsigned val, char *buf, int radix);utoa converts val to a string in base radix and places the result in buf.utoa returns buf as the result.If radix is greater than 36, the result is undefined.Portability utoa 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) ultoa (page 309) - String handlingThe header file defines functions that operate on arrays that are interpretedas null-terminated strings.Various methods are used <strong>for</strong> determining the lengths of the arrays, but in all cases achar * or void * argument points to the initial (lowest addressed) character of the array.If an array is accessed beyond the end of an object, the behavior is undefined.Where an argument declared as size_t n specifies the length of an array <strong>for</strong> a function,n can have the value zero on a call to that function. Unless explicitly stated otherwisein the description of a particular function, pointer arguments must have valid valueson a call with a zero size. On such a call, a function that locates a character finds nooccurrence, a function that compares two character sequences returns zero, and afunction that copies characters copies zero characters.Copying functionsmemcpymemmovestrcpyCopy memorySafely copy overlapping memoryCopy string310 Chapter 28 Standard C Library Reference

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

Saved successfully!

Ooh no, something went wrong!