summaryrefslogtreecommitdiff
path: root/src/stdlib/div_t.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/div_t.c')
-rw-r--r--src/stdlib/div_t.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/stdlib/div_t.c b/src/stdlib/div_t.c
new file mode 100644
index 00000000..60acd660
--- /dev/null
+++ b/src/stdlib/div_t.c
@@ -0,0 +1,17 @@
+#include <stdlib.h>
+
+/** quotient and remainder **/
+
+typedef struct {
+ int quot;
+ int rem;
+} div_t;
+
+/***
+is the type returned by FUNCTION(div) to hold both the quotient and remainder
+of an integer division.
+***/
+
+/*
+STDC(1)
+*/