| Locale-Sensitive C/C++ String Operation Function void *rawmemchr(const void *block, int c); Internationalization (I18n) Function OverviewOften the memchrfunction is used with the knowledge that the bytecis available in the memory block specified by the parameters. But this means that thesizeparameter is not really needed and that the tests performed with it at runtime (to check whether the end of the block is reached) are not needed. The rawmemchrfunction exists for just this situation which is surprisingly frequent. The interface is similar tomemchrexcept that thesizeparameter is missing. The function will look beyond the end of the block pointed to byblockin case the programmer made an error in assuming that the bytecis present in the block. In this case the result is unspecified. Otherwise the return value is a pointer to the located byte. I18n IssuesThere is no ANSI wide character version of this function. In this case we suggest you you use wcschrwith an extremely large number as thesizeparameter.  (For sufficiently largesizenumbers,memchrandrawmemchrare identical.) Recommended Replacements* 
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function. Locale-Sensitive C/C++ String Operation Functions    
 |