You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
397 B

  1. #pragma once
  2. #include <stddef.h>
  3. #include <wchar.h>
  4. #include "macros.h"
  5. void *xmalloc(size_t size) XMALLOC;
  6. void *xcalloc(size_t nmemb, size_t size) XMALLOC;
  7. void *xrealloc(void *ptr, size_t size);
  8. char *xstrdup(const char *str) XSTRDUP;
  9. char *xstrndup(const char *str, size_t n) XSTRDUP;
  10. char *xasprintf(const char *format, ...) PRINTF(1) XMALLOC;
  11. wchar_t *xwcsdup(const wchar_t *str) XSTRDUP;