blob: d36d7e96f47160a73a23f82456262cbb04e3bdf9 [file] [log] [blame]
/* stdlib.h */
/*
* Copyright (c) 2011-2014 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __INC_stdlib_h__
#define __INC_stdlib_h__
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
unsigned long int strtoul(const char *str, char **endptr, int base);
long int strtol(const char *str, char **endptr, int base);
int atoi(const char *s);
void *malloc(size_t size);
void free(void *ptr);
void *calloc(size_t nmemb, size_t size);
void *realloc(void *ptr, size_t size);
void *reallocarray(void *ptr, size_t nmemb, size_t size);
#define abs(x) ((x) < 0 ? -(x) : (x))
#ifdef __cplusplus
}
#endif
#endif /* __INC_stdlib_h__ */