Files
photon/photon/libc/include/stdlib.h

27 lines
576 B
C
Raw Normal View History

2020-04-17 11:24:05 +01:00
#ifndef STDLIB_H_
#define STDLIB_H_
#include <stddef.h>
#if defined(__cplusplus)
extern "C" {
#endif
extern _Noreturn void abort(void);
extern _Noreturn void exit(int code);
extern void *malloc(size_t sz);
extern void *realloc(void *ptr, size_t sz);
extern void *calloc(size_t n, size_t sz);
2020-04-17 11:24:05 +01:00
extern void free(void *ptr);
2020-07-16 14:02:51 +01:00
extern int atoi(const char *str);
extern double atof(const char *str);
extern long int strtol(const char *str, char **endptr, int base);
extern double strtod(const char *str, char **endptr);
2020-04-17 11:24:05 +01:00
#if defined(__cplusplus)
} /* extern "C" */
#endif
#endif