summaryrefslogtreecommitdiff
path: root/src/stddef/ptrdiff_t.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stddef/ptrdiff_t.c')
-rw-r--r--src/stddef/ptrdiff_t.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/stddef/ptrdiff_t.c b/src/stddef/ptrdiff_t.c
new file mode 100644
index 00000000..1bbd99c8
--- /dev/null
+++ b/src/stddef/ptrdiff_t.c
@@ -0,0 +1,24 @@
+#include <stddef.h>
+#ifdef __LLP64__
+# if ! defined __STDC_VERSION__ || __STDC_VERSION__ < 199909L
+typedef __int64 ptrdiff_t;
+# else
+typedef long long int ptrdiff_t;
+# endif
+#else
+typedef long int ptrdiff_t;
+#endif
+
+/** pointer arithmetic type **/
+
+/***
+is a signed integral type which results when subtracting one pointer
+from another.
+***/
+
+/*
+TYPEDEF(signed integer)
+*/
+/*
+STDC(1)
+*/