---
name: "memparse"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/memparse/9"
---

# memparse(9)

parse a string with mem suffixes into a number

## NAME

memparse - parse a string with mem suffixes into a number

## SYNOPSIS

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

## ARGUMENTS

*ptr*

Where parse begins

*retptr*

(output) Optional pointer to next char after parse completes

## DESCRIPTION

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

## COPYRIGHT
