---
name: "getdns_list_set_int"
section: "3"
platform: "linux"
package: "getdns"
version: "1.7.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/getdns_list_set_int"
---

# getdns\_list\_set\_int(3)

## NAME

**getdns\_list\_set,** **getdns\_list\_set\_bindata,** **getdns\_list\_set\_dict,** **getdns\_list\_set\_int,** **getdns\_list\_set\_list,** -- set a value by index from a getdns list

## LIBRARY

DNS Resolver library (libgetdns, -lgetdns)

## SYNOPSIS

\#include \<getdns.h\>

getdns\_return\_t \
 **getdns\_list\_set\_bindata** (getdns\_list \*this\_list,

size\_t index,\
 getdns\_bindata \*child\_bindata)

getdns\_return\_t\
 **getdns\_list\_set\_dict** (getdns\_list \*this\_list,

size\_t index,\
 getdns\_dict \*child\_dict)

getdns\_return\_t \
 **getdns\_list\_set\_int** (getdns\_list \*this\_list,

size\_t index,\
 uint32\_t child\_uint32\_t)

getdns\_return\_t \
 **getdns\_list\_set\_list** (getdns\_list \*this\_list,

size\_t index,\
 getdns\_list \*child\_list)

## DESCRIPTION

The getdns\_list type is used to manage a heterogeneous indexed list of values that include:

getdns\_bindata\
 getdns\_dict\
 getdns\_list\
 uint32\_t

*this\_list* the list in which to add/update the indexed item

*index* the index whose associated value is to be set.  If the index exists in the list the value associated with that index is replaced, if the index does not exist in the  list a new item is added to the list at the specified index.

*child\_bindata* *child\_dict* *child\_list* *child\_uint32* value to assign the indexed element

## RETURN VALUES

Upon successful completion the functions return **GETDNS\_RETURN\_GOOD** , otherwise the following error values are returned:

**GETDNS\_RETURN\_NO\_SUCH\_LIST\_ITEM** if the index is out of range

**GETDNS\_RETURN\_GENERIC\_ERROR** if this\_list is not a valid list

## EXAMPLES

TBD

## SEE ALSO

[**libgetdns**(3)](/libgetdns/3.md), [**getdns\_address**(3)](/getdns_address/3.md), [**getdns\_list**(3)](/getdns_list/3.md), [**getdns\_list\_get**(3)](/getdns_list_get/3.md), [**getdns\_general**(3)](/getdns_general/3.md), [**getdns\_hostname**(3)](/getdns_hostname/3.md), [**getdns\_service**(3)](/getdns_service/3.md),
