11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks 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.

Portabilitymemmove con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).memsetSynopsisDescriptionPortability#include void *memset(void *s, int c, size_t n);memset copies the value of c (converted to an unsigned char) into each of the first ncharacters of the object pointed to by s.memset returns the value of s.memset con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).strcatSynopsisDescriptionPortability#include char *strcat(char *s1, const char *s2);strcat appends a copy of the string pointed to by s2 (including the terminating nullcharacter) to the end of the string pointed to by s1. The initial character of s2 overwritesthe null character at the end of s1. The behaviour of strcat is undefined if copying takesplace between objects that overlap.strcat returns the value of s1.strcat con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).strchrSynopsisDescriptionPortability#include char *strchr(const char *s, int c);strchr locates the first occurrence of c (converted to a char) in the string pointed to bys. The terminating null character is considered to be part of the string.strchr returns a pointer to the located character, or a null pointer if c does not occur inthe string.strchr con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).See also memchr (page 311)strcmpSynopsis#include int strcmp(const char *s1, const char *s2);Chapter 28 - String handling313

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

Saved successfully!

Ooh no, something went wrong!