---
name: "libnvme_ctrl_get_src_addr-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/libnvme_ctrl_get_src_addr-libnvme3"
---

# libnvme\_ctrl\_get\_src\_addr-libnvme3(2)

Extract src\_addr from the c-\>address string

## NAME

libnvme\_ctrl\_get\_src\_addr - Extract src\_addr from the c-\>address string

## SYNOPSIS

**char \* libnvme\_ctrl\_get\_src\_addr** **(struct libnvme\_ctrl \*c** *,* **char \*src\_addr** *,* **size\_t src\_addr\_len** *);*

## ARGUMENTS

- c

  Controller instance

- src\_addr

  Where to copy the src\_addr. Size must be at least INET6\_ADDRSTRLEN.

- src\_addr\_len

  Length of the buffer *src\_addr*.

## RETURN

Pointer to *src\_addr* on success. NULL on failure to extract the src\_addr.
