Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - memcmp http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                  memcmp

   Usage
   #include <const string.h>
   int memcmp(void *buf1,const void *buf2,size_t count);

   Description
   memcmp  compares each successive byte pointed to by pointer buf1  with
   the  corresponding byte pointed to by buf2 until they do not have  the
   same  value or until the number of bytes specified in count have  been
   compared.  memcmp returns an integer less than, equal to,  or  greater
   than  zero, depending on whether the last byte compared in the  buffer
   pointed  to  by  buf1  is less than, equal to,  or  greater  than  the
   corresponding byte pointed to by buf2.

   Example
   See Mem_package

   Return Value
   memcmp returns a value which is (< 0) if buf1 is less than buf2,  (=0)
   if buf1 equals buf2 and (> 0)if buf1 is greater than buf2.


See Also: memicmp memchr memcpy memset strcmp strcat strset strchr

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson