commit e70e625416b24422380560aed9494a9f37c4212b
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Sat Feb 18 19:28:45 2017 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Sat Feb 18 19:29:35 2017 +0100

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

diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h
index da65547..deedc65 100644
--- 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);

Reply via email to