umult64(3)
π umult64(3) β like, the manual page bestie π
okay so we're in the Library Functions Manual section of the docs, and today's main character is umult64(3) β it's giving "multiply two numbers but make it safe" energy and honestly? iconic. π«Ά
β¨ NAME β¨
umult64 β integer multiplication, but with overflow checking, because we do NOT do silent chaos here π
π¦ SYNTAX π¦
#include <libowfat/safemult.h>
int umult64(uint64 a,uint64 b,uint64* c);
πΈ DESCRIPTION πΈ
so here's the tea, bestie: umult64 does c=a*b and returns 1. that's it. that's the whole vibe. β¨
but in case of an integer overflow, it justβ¦ leaves c alone π and returns 0. no touching, no overwriting, no mess. it's literally the most respectful function in the whole library fr fr.
lowkey important: if it returns0, yourcis untouched β so don't go reading it like it's fresh data, because it's not. π«
π SEE ALSO π
the whole multiply-safely squad, go say hi π
and that's the page!! this little cutie lives in the Library Functions Manual, filed under umult64(3) β mwah, no cap, go multiply responsibly ππβ¨
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms