memparse(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ NAME โœจ

okay so bestie, this is memparse(9) from the Kernel API Manual โ€” she parses a string with mem suffixes into a number, and honestly? iconic behavior. ๐Ÿ’…โœจ

๐ŸŒธ SYNOPSIS ๐ŸŒธ

unsigned long long memparse (const char *ptr , char **retptr );

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • ptr โ€” where the parse begins. like, the starting point of the whole situation. ๐Ÿ“
  • retptr โ€” (output) optional pointer to the next char after the parse completes. yes, she'll point you to where she stopped. ๐Ÿซถ

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so memparse parses a string into a number. the number stored at ptr is potentially suffixed with K, M, G, T, P, E โ€” that's the suffix menu, no cap. ๐Ÿ“

๐Ÿ”ฅ RETURN ๐Ÿ”ฅ

the return value is the value as recognized by simple_strtoull, multiplied by the value specified by the suffix, if any. math girlie said what she said. ๐Ÿงฎ๐Ÿ’–

๐ŸŒˆ SEE ALSO ๐ŸŒˆ


mwah ๐Ÿ’‹ and that's the page! cute little footer sign-off for the record: source/version ./lib, date October 2026, manual memparse(9). ๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from