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.

strncpyCopy string up to a maximum lengthConcatenation functionsstrcatstrncatConvert string to intConvert string to longComparison functionsmemcmpstrcmpstrncmpstrcollCompare memoryCompare stringsCompare strings up to a maximum lengthCollate stringsSearch functionsmemchrstrchrstrcspnstrpbrkstrrchrstrspnstrstrstrtokSearch memory <strong>for</strong> a characterFind first occurrence of character within stringCompute size of string not prefixed by a set of charactersFind first occurrence of characters within stringFind last occurrence of character within stringCompute size of string prefixed by a set of charactersFind first occurrence of a string within a stringBreak string into tokensMiscellaneous functionsmemsetstrerrorstrlenSet memory to characterReturn string from error codeCalculate length of stringmemchrSynopsisDescription#include void *memchr(const void *s, int c, size_t n);memchr locates the first occurrence of c (converted to an unsigned char) in the initialn characters (each interpreted as unsigned char) of the object pointed to by s. Unlikestrchr, memchr does not terminate a search when a null character is found in the objectpointed to by s.Chapter 28 - String handling311

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

Saved successfully!

Ooh no, something went wrong!