2

c_ulong

 1 year ago
source link: https://doc.rust-lang.org/stable/std/ffi/type.c_ulong.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Type Definition std::ffi::c_ulong

1.64.0 · source · [−]
pub type c_ulong = u64;

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK