stdlib.h 743 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2012-2021 Roberto E. Vargas Caballero
3
4
5
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
6
/*
7
 * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
8
9
 * All rights reserved.
 */
10

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
11
12
#ifndef STDLIB_H
#define STDLIB_H
13

14
#include <stddef.h>
15

16
17
18
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
19
#define _ATEXIT_MAX 1
20

21
22
23
#define isspace(x)    (((x) == ' ') || ((x) == '\r') || ((x) == '\n') || \
			((x) == '\t') || ((x) == '\b'))

24
25
26
27
extern void abort(void);
extern int atexit(void (*func)(void));
extern void exit(int status);

28
long strtol(const char *nptr, char **endptr, int base);
29
unsigned long strtoul(const char *nptr, char **endptr, int base);
30
long long strtoll(const char *nptr, char **endptr, int base);
Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
31
#endif /* STDLIB_H */