memcmp.lisp 282 B

123456789101112131415
  1. (in-package :hurd-common)
  2. (defcfun ("memcmp" %memcmp)
  3. :int
  4. (p1 :pointer)
  5. (p2 :pointer)
  6. (size size-t))
  7. (defun memcmp (p1 p2 size)
  8. "Compares 'size' bytes of pointer 'p1' to pointer 'p2'.
  9. Returns T in case they are the same, NIL otherwise."
  10. (= 0 (%memcmp p1 p2 size)))