|
|
|
|
|
by jhallenworld
3414 days ago
|
|
You typically want to use the native integer size for something like this, for the code to be more portable. The native integer size should really be int, but it's not defined as such in the standard. My preference at the moment: off_t for file offsets ptrdiff_t for memory offsets (vs. size_t for unsigned) int for return flags A problem with this is that printf does not have sizes to match these. |
|
See also https://forge.rust-lang.org/platform-support.html