---
name: "hdf_set_copy"
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_copy"
---

# hdf\_set\_copy(3)

Copy a value from one location in the dataset to another

## NAME

hdf\_set\_copy - Copy a value from one location in the dataset to another

## SYNOPSIS

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

```
NEOERR* hdf_set_copy (HDF *hdf, const char *dest, const char *src);
```

## ARGUMENTS

hdf -\> the pointer to the dataset node\
 dest -\> the name of the destination node\
 src -\> the name of the source node

## DESCRIPTION

hdf\_set\_copy first walks the hdf dataset to the named src node, and then copies that value to the named dest node. If the src node is not found, an error is raised.

## 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**
