---
name: "libnvmf_tid_parse_strict-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvmf_tid_parse_strict-libnvme3"
---

# libnvmf\_tid\_parse\_strict-libnvme3(2)

Like libnvmf\_tid\_parse(), but reject malformed input.

## NAME

libnvmf\_tid\_parse\_strict - Like libnvmf\_tid\_parse(), but reject malformed input.

## SYNOPSIS

**int libnvmf\_tid\_parse\_strict** **(struct libnvme\_global\_ctx \*ctx** *,* **const char \*str** *,* **struct libnvmf\_tid \*\*out** *);*

## ARGUMENTS

- ctx

  Global context for logging.

- str

  Input string.

- out

  The allocated TID on success; NULL on error.

## DESCRIPTION

Same as **libnvmf\_tid\_parse** except that a malformed token -- a non-empty bare token (no '='), an empty value, or an unrecognized key -- fails the whole parse instead of being skipped.  Empty tokens (from ";;" or a trailing ';') are still benign.  Useful when an unrecognized key should be treated as an error (e.g. a typo in a hand-edited config) rather than silently ignored.

## RETURN

0 on success (\**out* is the allocated TID); -EINVAL if *ctx*, *out* or *str* is NULL, or on a malformed token; -ENOMEM on allocation failure.
