[hackers] [scc] [libc] Add div_t, ldiv_t and lldiv_t to stdlib.h || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 18 Feb 2017 19:32:49 +0100 (CET)

commit e70e625416b24422380560aed9494a9f37c4212b
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Feb 18 19:28:45 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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);
Received on Sat Feb 18 2017 - 19:32:49 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 18 2017 - 19:36:17 CET