1MEMPARSE(9) Basic Kernel Library Functions MEMPARSE(9)
23
4
NAME
6memparse - parse a string with mem suffixes into a number
7
SYNOPSIS
9unsigned long long memparse(const char * ptr, char ** retptr);
10
ARGUMENTS
12ptr
13Where parse begins
1415
retptr
16(output) Optional pointer to next char after parse completes
17
DESCRIPTION
19Parses a string into a number. The number stored at ptr is potentially
20suffixed with K, M, G, T, P, E.
21
COPYRIGHT
23Kernel Hackers Manual 3.10 June 2019 MEMPARSE(9)