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.

memchr returns a pointer to the located character, or a null pointer if c does not occurin the object.Portabilitymemchr con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).See also strchr (page 313)memcmpSynopsisDescriptionPortability#include int memcmp(const void *s1, const void *s2, size_t n);memcmp compares the first n characters of the object pointed to by s1 to the first ncharacters of the object pointed to by s2. memcmp returns an integer greater than,equal to, or less than zero as the object pointed to by s1 is greater than, equal to, or lessthan the object pointed to by s2.memcmp con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).memcpySynopsisDescription#include void *memcpy(void *s1, const void *s2, size_t n);memcpy copies n characters from the object pointed to by s2 into the object pointed toby s1. The behaviour of memcpy is undefined if copying takes place between objectsthat overlap.memcpy returns the value of s1.Portabilitymemcpy con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).memmoveSynopsisDescription#include void *memmove(void *s1, const void *s2, size_t n);memmove copies n characters from the object pointed to by s2 into the object pointedto by s1 ensuring that if s1 and s2 overlap, the copy works correctly. Copying takesplace as if the n characters from the object pointed to by s2 are first copied into atemporary array of n characters that does not overlap the objects pointed to by s1 ands2, and then the n characters from the temporary array are copied into the objectpointed to by s1.memmove returns the value of s1.312 Chapter 28 Standard C Library Reference

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

Saved successfully!

Ooh no, something went wrong!