summaryrefslogtreecommitdiffstats
path: root/library/core/src/ffi/c_ulong.md
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/ffi/c_ulong.md')
-rw-r--r--library/core/src/ffi/c_ulong.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/core/src/ffi/c_ulong.md b/library/core/src/ffi/c_ulong.md
new file mode 100644
index 000000000..4ab304e65
--- /dev/null
+++ b/library/core/src/ffi/c_ulong.md
@@ -0,0 +1,5 @@
+Equivalent to C's `unsigned long` type.
+
+This type will always be [`u32`] or [`u64`]. Most notably, many Linux-based systems assume an `u64`, but Windows assumes `u32`. The C standard technically only requires that this type be an unsigned integer with the size of a [`long`], although in practice, no system would have a `ulong` that is neither a `u32` nor `u64`.
+
+[`long`]: c_long