shithub: scc

Download patch

ref: 1f0d365d97c2e1f57938d17e642c4e3496732b51
parent: 5d893a21b31bdc2b297d96395c2d61ae8b0ec313
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Feb 18 14:28:45 EST 2017

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

--- 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);