scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit e70e625416b24422380560aed9494a9f37c4212b
parent 0f98deff32570e2c79e77dad7344298253b15db9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 18 Feb 2017 19:28:45 +0100

[libc] Add div_t, ldiv_t and lldiv_t to stdlib.h

Diffstat:
Mlibc/include/stdlib.h | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h @@ -4,6 +4,18 @@ #include <arch/stdlib.h> +typedef struct { + int quot, rem; +} div_t; + +typedef struct { + long quot, rem; +} ldiv_t; + +typedef struct { + long long quot, rem; +} lldiv_t; + extern double atof(const char *nptr); extern int atoi(const char *nptr); extern long int atol(const char *nptr);