memparse(9)

memparse9

Parse a string with mem suffixes into a number

Usage

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

Arguments

ptr

Where parse begins

retptr

(output) Optional pointer to next char after parse completes

Overview

Parses a string into a number. The number stored at ptr is potentially suffixed with K, M, G, T, P, E.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.