stdlib.h 671 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <stddef.h>
  3. typedef unsigned long size_t;
  4. #define EXIT_FAILURE 1
  5. void *malloc(size_t size);
  6. void *calloc(size_t num, size_t size);
  7. void *alloca(size_t size);
  8. void *realloc(void *mem, size_t size);
  9. void free(void *mem);
  10. int system(const char *string);
  11. void exit(int code);
  12. long int strtol(const char *str, char **endptr, int base);
  13. float strtof(const char *str, char **endptr);
  14. double atof(const char *str);
  15. int abs(int n);
  16. long long int llabs(long long int n);
  17. void qsort(void *base, size_t num, size_t size, int (*compar)(const void *, const void *));
  18. int rand();
  19. #define RAND_MAX 2147483647