memset.h 487 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * memset.h
  3. * prototypes for memset.c
  4. *
  5. */
  6. #ifndef _EGG_COMPAT_MEMSET_H
  7. #define _EGG_COMPAT_MEMSET_H
  8. #ifdef HAVE_CONFIG_H
  9. # include "config.h"
  10. #endif
  11. #include <string.h>
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifndef HAVE_MEMSET
  16. /* Use our own implementation. */
  17. void *memset(void *dest, int c, size_t n);
  18. #endif
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. /* Use memset instead of bzero.
  23. */
  24. //#undef bzero
  25. //#define bzero(dest, n) memset(dest, 0, n)
  26. #endif /* !__EGG_COMPAT_MEMSET_H */