strchr,wcschr 及strrchr, wcsrchr,_tcschr,_tcsrchr函式
(1)
char *strchr( const char *string, int c );
wchar_t *wcschr( const wchar_t *string, wchar_t c );
Find a character in a string.
查詢一個字串中首次出現的指定字元。
Return Value
Each of these functions returns a pointer to the first occurrence of c in string(address), or NULL if c is not found.
_tcschr是strchr或者wcschr,跟_UNICODE是否定義有關(2)
char *strrchr( const char *string, int c);
char *wcsrchr( const wchar_t *string, int c );
Scan a string for the last occurrence of a character.
查詢一個字串中最後出現的指定字元。
Return Value
Each of these functions returns a pointer to the last occurrence of c in string(address), or NULL if c is not found.
找出字串中最後一個出現查詢字元的地址,然後將該字元出現的地址返回。
_tcsrchr是strrchr或者wcsrchr,跟_UNICODE是否定義有關