memset.h 389 B

1234567891011121314151617181920212223
  1. /*
  2. * memset.h
  3. * prototypes for memset.c
  4. *
  5. */
  6. #ifndef _EGG_COMPAT_MEMSET_H
  7. #define _EGG_COMPAT_MEMSET_H
  8. #include "src/common.h"
  9. #include <string.h>
  10. #ifndef HAVE_MEMSET
  11. /* Use our own implementation. */
  12. void *memset(void *dest, int c, size_t n);
  13. #endif
  14. /* Use memset instead of bzero.
  15. */
  16. #undef bzero
  17. #define bzero(dest, n) memset(dest, 0, n)
  18. #endif /* !__EGG_COMPAT_MEMSET_H */