blob: c577dab12856adfbfbfb68f6daef1fbb0a85a8eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Allowing this on a module level, because:
// 1. this module will only ever contain these constants;
// 2. the names are copied from C, and should be kept verbatim, capitalization and all.
#![allow(non_upper_case_globals)]
/// `printf` format specifiers for 32-bit platforms.
/// `printf`'s format conversion specifier to output an `i32` (equivalent to `PRIi32`).
pub const PRId32: &str = "d";
/// `printf`'s format conversion specifier to output an `i32` (equivalent to `PRId32`).
pub const PRIi32: &str = "i";
/// `printf`'s format conversion specifier to output an `u32`.
pub const PRIu32: &str = "u";
/// `printf`'s format conversion specifier to output an `i64` (equivalent to `PRIi64`).
pub const PRId64: &str = "lld";
/// `printf`'s format conversion specifier to output an `i64` (equivalent to `PRId64`).
pub const PRIi64: &str = "lli";
/// `printf`'s format conversion specifier to output an `u64`.
pub const PRIu64: &str = "llu";
|