qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
memchr, _fmemchr
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The memchr and _fmemchr functions look for the first occurrence of
     <c> in the first <count> bytes of <buf>. They stop when they find
     <c> or after checking the first <count> bytes.
 
     The _fmemchr function is a model-independent (large model) form of
     the memchr function and can be called from any point in any
     program.
 
     Return Value
 
     If successful, memchr and _fmemchr return a pointer (or a far
     pointer) to the first location of <c> in <buf>. Otherwise, they
     return NULL.
                                    -♦-