---
name: "hdf_set_valuef"
section: "3"
platform: "linux"
package: "clearsilver-dev"
version: "0.10.5-6+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/hdf_set_valuef"
---

# hdf\_set\_valuef(3)

Set the value of a named node

## NAME

hdf\_set\_valuef  - Set the value of a named node

## SYNOPSIS

```
#include <util/neo_hdf.h>
```

```
NEOERR* hdf_set_valuef (HDF *hdf, const char *fmt, ...)
                        ATTRIBUTE_PRINTF(2,3);
```

## ARGUMENTS

hdf -\> the pointer to the hdf dataset\
 fmt -\> the name=value [printf(3)](/printf/3.md) format string

## DESCRIPTION

hdf\_set\_valuef is a convenience function that wraps hdf\_set\_value.  Due to limitations of C, the fmt is in the format "name=value", where we will first format the entire string, and then break it at the first (from the left) equal sign (=) and use the left portion as the name and the right portion as the value.  This function is somewhat inefficient in that it first allocates the full name=value, and then the call to hdf\_set\_value duplicates the value portion, and then we free the name=value. Currently, we don't strip whitespace from the key or value.  In the future, this function might work more like reading a single line of an HDF string or file, allowing for attributes and symlinks to be specified... maybe.

## RETURN VALUE

None

## SEE ALSO

[**hdf\_set\_symlink**(3)](/hdf_set_symlink/3.md), [**hdf\_get\_valuef**(3)](/hdf_get_valuef/3.md), **compareFunc)**(3), [**hdf\_dump\_str**(3)](/hdf_dump_str/3.md), [**hdf\_get\_int\_value**(3)](/hdf_get_int_value/3.md), [**hdf\_read\_string\_ignore**(3)](/hdf_read_string_ignore/3.md), [**hdf\_copy**(3)](/hdf_copy/3.md), [**hdf\_get\_node**(3)](/hdf_get_node/3.md), [**hdf\_set\_value**(3)](/hdf_set_value/3.md), [**hdf\_obj\_child**(3)](/hdf_obj_child/3.md), [**hdf\_read\_string**(3)](/hdf_read_string/3.md), [**hdf\_set\_buf**(3)](/hdf_set_buf/3.md), [**hdf\_register\_fileload**(3)](/hdf_register_fileload/3.md), [**hdf\_get\_obj**(3)](/hdf_get_obj/3.md), [**hdf\_get\_attr**(3)](/hdf_get_attr/3.md), [**hdf\_obj\_top**(3)](/hdf_obj_top/3.md), [**hdf\_dump\_format**(3)](/hdf_dump_format/3.md), [**hdf\_destroy**(3)](/hdf_destroy/3.md), [**hdf\_init**(3)](/hdf_init/3.md), [**hdf\_obj\_value**(3)](/hdf_obj_value/3.md), [**hdf\_write\_string**(3)](/hdf_write_string/3.md), **hdf\_set\_valuevf**(3), [**hdf\_sort\_obj**(3)](/hdf_sort_obj/3.md), [**hdf\_write\_file\_atomic**(3)](/hdf_write_file_atomic/3.md), [**hdf\_obj\_attr**(3)](/hdf_obj_attr/3.md), [**hdf\_set\_valuef**(3)](/hdf_set_valuef/3.md), [**hdf\_get\_copy**(3)](/hdf_get_copy/3.md), [**hdf\_write\_file**(3)](/hdf_write_file/3.md), [**hdf\_get\_valuevf**(3)](/hdf_get_valuevf/3.md), [**hdf\_set\_int\_value**(3)](/hdf_set_int_value/3.md), [**hdf\_dump**(3)](/hdf_dump/3.md), [**hdf\_get\_value**(3)](/hdf_get_value/3.md), [**hdf\_set\_copy**(3)](/hdf_set_copy/3.md), [**hdf\_obj\_next**(3)](/hdf_obj_next/3.md), [**hdf\_search\_path**(3)](/hdf_search_path/3.md), [**hdf\_obj\_name**(3)](/hdf_obj_name/3.md), [**hdf\_set\_attr**(3)](/hdf_set_attr/3.md), [**hdf\_get\_child**(3)](/hdf_get_child/3.md), **hdf\_remove\_tree**
