19 #ifdef __STDC_WANT_LIB_EXT1__ 57 errno_t error) __attribute__ ((noreturn));
76 extern void exit(
int status) __attribute__ ((noreturn));
83 extern void _exit(
int status) __attribute__((noreturn));
91 static __inline__
int abs(
int j) {
92 return (j < 0) ? -j : j;
98 void abort(
void) __attribute__((noreturn));
122 extern long strtol(
const char *nptr,
char **endptr,
int base)
123 __attribute__ ((warn_unused_result));
144 extern unsigned long strtoul(
const char *cp,
char **endp,
int base)
145 __attribute__ ((warn_unused_result));
169 extern double strtod(
const char *nptr,
char **endptr);
192 extern long long strtoll(
const char *nptr,
char **endptr,
int base)
193 __attribute__ ((warn_unused_result));
214 extern unsigned long long strtoull(
const char *cp,
char **endp,
int base)
215 __attribute__ ((warn_unused_result));
245 extern float strtof(
const char *nptr,
char **endptr);
275 extern long double strtold(
const char *nptr,
char **endptr);
284 int atexit(
void (*func)(
void));
286 #ifndef __HIDE_INTERNAL_FUNCTIONS__ 296 int on_exit(
void (*func)(
int ,
void *),
void *arg);
307 extern void *
malloc(
size_t size)
308 __attribute__ ((warn_unused_result,
malloc));
316 extern void free(
void *ptr);
328 extern void *
calloc(
size_t nmemb,
size_t size)
329 __attribute__ ((warn_unused_result,
malloc));
350 extern void *
realloc(
void *ptr,
size_t size)
351 __attribute__ ((warn_unused_result));
355 extern char *__getenv_stub(
const char *name);
365 void qsort(
void *base,
size_t nmemb,
size_t size,
int (*compar)(
const void *,
const void *));
375 void qsort_r(
void *base,
size_t nmemb,
size_t size,
376 int (*compar)(
const void *,
const void *,
void *),
void *arg);
383 int atoi(
const char *nptr);
390 double atof(
const char *nptr);
397 char *
getenv(
const char *name);
413 int setenv(
const char *name,
const char *value,
int overwrite);
void ignore_handler_s(const char *restrict msg, void *restrict ptr, errno_t error)
Returns to the caller without performing any actions.
void * malloc(size_t size)
Allocate size bytes and return a pointer to the allocated memory.
int atoi(const char *nptr)
Convert a string to an integer.
unsigned long strtoul(const char *cp, char **endp, int base)
Convert the initial part of the string in nptr to a unsigned long integer value according to the give...
double strtod(const char *nptr, char **endptr)
the initial portion of the string pointed to by nptr to double.
unsigned long long strtoull(const char *cp, char **endp, int base)
Convert the initial part of the string in nptr to a unsigned long long integer value according to the...
static __inline__ int abs(int j)
Compute the absolute value of the integer argument __n.
Definition: stdlib.h:91
int errno_t
Definition: errno.h:297
constraint_handler_t set_constraint_handler_s(constraint_handler_t handler)
Set the handler to be handler.
int unsetenv(const char *name)
delete environment variable function stub
long strtol(const char *nptr, char **endptr, int base)
Convert the initial part of the string in nptr to a long integer value according to the given base...
void _exit(int status)
Terminate the calling process "immediately". Any open file descriptors belonging to the process are c...
float strtof(const char *nptr, char **endptr)
the initial portion of the string pointed to by nptr to float.
void invoke_constraint_handler_s(const char *msg, const char *file, const char *function, uint32_t line, errno_t error)
Print msg if constraint was caused.
char * getenv(const char *name)
get an environment variable function stub
int setenv(const char *name, const char *value, int overwrite)
change or add environment variable function stub
int atexit(void(*func)(void))
Register the given function to be called at normal process termination.
void abort(void)
Cause abnormal process termination.
void abort_handler_s(const char *restrict msg, void *restrict ptr, errno_t error)
Abort system if constraint was caused.
void * calloc(size_t nmemb, size_t size)
Allocate memory for an array of nmemb elements of size bytes each and return a pointer to the allocat...
void(* constraint_handler_t)(const char *restrict msg, void *restrict ptr, errno_t error)
Definition: stdlib.h:26
void free(void *ptr)
Free the memory space pointer to by ptr.
long double strtold(const char *nptr, char **endptr)
the initial portion of the string pointed to by nptr to long double.
void * realloc(void *ptr, size_t size)
Change the size of the memory block pointed to by ptr to size bytes.
void exit(int status)
Cause normal process termination and return the value of status & 0377 to the parent.
double atof(const char *nptr)
Convert a string to a double.
void qsort_r(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *, void *), void *arg)
Sort an array.
long long strtoll(const char *nptr, char **endptr, int base)
Convert the initial part of the string in nptr to a long long integer value according to the given ba...
void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
Sort an array.