13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

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.

2−38PCP Reference ManualSearch functionsLIBRARIESStdio.h Wchar.h Descriptionmemchr(*s,c,n) wmemchr(*s,c,n) Checks the first n charactersof *s on the occurence ofcharacter c. Returns apointer to the foundcharacter.strchr(*s,c) wcschr(*s,c) Returns a pointer to the firstoccurence of character c in*s or the null pointer if notfound.strrchr(*s,c) wcsrchr(*s,c) Returns a pointer to the lastoccurence of character c in*s or the null pointer if notfound.strspn(*s,*set) wcsspn(*s,*set) Searches *s for a sequenceof characters specified in*set. Returns the length ofthe first sequence found.strcspn(*s,*set) wcscspn(*s,*set) Searches *s for a sequenceof characters not specified in*set. Returns the length ofthe first sequence found.strpbrk(*s,*set) wcspbrk(*s,*set) Same as strspn/wcsspnbut returns a pointer to thefirst character in *s that alsois specified in *set.strstr(*s,*sub) wcsstr(*s,*sub) Searches for a substring*sub in *s. Returns a pointerto the first occurence of *subin *s.strtok(*s,*dlm) wcstok(*s,*dlm) A sequence of calls to thisfunction breaks the string *sinto a sequence of tokensdelimited by a characterspecified in *dlm. The tokenfound in *s is terminated witha null character. Returns apointer to the first position in*s of the token.

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

Saved successfully!

Ooh no, something went wrong!