diff options
| author | Bobby <[email protected]> | 2026-02-24 03:58:22 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-02-24 03:58:22 +0530 |
| commit | 6a7363663f34a031f3138802eeab1d5e569a753d (patch) | |
| tree | 705894cef49b9402b2c9460a85682bcebed376fd /system/libraries/format/format.zig | |
| parent | 3df380d213dad9684cbe71003105fc53dd86a684 (diff) | |
| download | akiba-6a7363663f34a031f3138802eeab1d5e569a753d.tar.xz akiba-6a7363663f34a031f3138802eeab1d5e569a753d.zip | |
commit for arch change
Diffstat (limited to 'system/libraries/format/format.zig')
| -rw-r--r-- | system/libraries/format/format.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system/libraries/format/format.zig b/system/libraries/format/format.zig index 02a5632..f9c8068 100644 --- a/system/libraries/format/format.zig +++ b/system/libraries/format/format.zig @@ -20,3 +20,10 @@ pub const colorf = printmod.colorf; pub const Table = tablemod.Table; pub const Column = tablemod.Column; pub const Alignment = tablemod.Alignment; + +/// Print a u64 value as decimal +pub fn print_u64(num: u64) void { + var buf: [20]u8 = undefined; + const str = int.toStr(num, &buf); + print(str); +} |
