Parameters |
Description |
CTEXTSTR s1 |
String to search |
TEXTCHAR c |
Character to find |
pointer in string to search that is the first character that matches. NULL if no character matches.
This searches a string for the first character that matches some specified character.
A custom strchr function, since microsoft is saying this is an unsafe function. This Compiles to compare native strings, if UNICODE uses unicode, otherwise uses 8 bit characters.
This flavor is the only one on C where operator overloading cannot switch between CTEXTSTR and TEXTSTR parameters, to result with the correct type. If a CTEXTSTR is passed to this it should result with a CTEXTSTR, but if that's the only choice, then the result of this is never modifiable, even if it is a pointer to a non-const TEXTSTR.
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|