Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 1 | /* |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame^] | 2 | * Copyright (c) 2012-2021 Roberto E. Vargas Caballero |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 6 | /* |
Bence Szépkúti | fddf518 | 2019-10-25 17:48:20 +0200 | [diff] [blame] | 7 | * Portions copyright (c) 2018-2019, ARM Limited and Contributors. |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 8 | * All rights reserved. |
| 9 | */ |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 10 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 11 | #ifndef STDLIB_H |
| 12 | #define STDLIB_H |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 13 | |
Bence Szépkúti | 92410c9 | 2019-10-25 18:12:41 +0200 | [diff] [blame] | 14 | #include <stddef.h> |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 15 | |
Bence Szépkúti | fddf518 | 2019-10-25 17:48:20 +0200 | [diff] [blame] | 16 | #define EXIT_FAILURE 1 |
| 17 | #define EXIT_SUCCESS 0 |
| 18 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 19 | #define _ATEXIT_MAX 1 |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 20 | |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame^] | 21 | #define isspace(x) (((x) == ' ') || ((x) == '\r') || ((x) == '\n') || \ |
| 22 | ((x) == '\t') || ((x) == '\b')) |
| 23 | |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 24 | extern void abort(void); |
| 25 | extern int atexit(void (*func)(void)); |
| 26 | extern void exit(int status); |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 27 | |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame^] | 28 | long strtol(const char *nptr, char **endptr, int base); |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 29 | #endif /* STDLIB_H */ |