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.

DescriptionPortabilitystrcmp compares the string pointed to by s1 to the string pointed to by s2. strcmpreturns an integer greater than, equal to, or less than zero if the string pointed to by s1is greater than, equal to, or less than the string pointed to by s2.strcmp con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).strcollSynopsisDescriptionPortability#include int strcoll(const char *s1, const char *s2);strcoll compares the string pointed to by s1 to the string pointed to by s2. strcollreturns an integer greater than, equal to, or less than zero if the string pointed to by s1is greater than, equal to, or less than the string pointed to by s2.strcoll is not affected by the locale as <strong>CrossWorks</strong> C provides no locale capability.strcoll is provided <strong>for</strong> compaibility only and is not required in a freestandingimplementation according to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).strcpySynopsisDescriptionPortability#include char *strcpy(char *s1, const char *s2);strcpy copies the string pointed to by s2 (including the terminating null character) intothe array pointed to by s1. The behaviour of strcpy is undefined if copying takes placebetween objects that overlap.strcpy returns the value of s1.strcpy con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).strcspnSynopsisDescriptionPortability#include size_t strcspn(const char *s1, const char *s2);strcspn computes the length of the maximum initial segment of the string pointed toby s1 which consists entirely of characters not from the string pointed to by s2.strcspn returns the length of the segment.strcspn con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).314 Chapter 28 Standard C Library Reference

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

Saved successfully!

Ooh no, something went wrong!