1hdf_set_valuef(3)               util/neo_hdf.h               hdf_set_valuef(3)
2
3
4

NAME

6       hdf_set_valuef  - Set the value of a named node
7

SYNOPSIS

9       #include <util/neo_hdf.h>
10
11
12       NEOERR* hdf_set_valuef (HDF *hdf, const char *fmt, ...);
13
14
15
16

ARGUMENTS

18       hdf -> the pointer to the hdf dataset
19       fmt -> the name=value printf(3) format string
20
21

DESCRIPTION

23       hdf_set_valuef is a convenience function that wraps hdf_set_value.  Due
24       to limitations of C, the fmt is in the format  "name=value",  where  we
25       will  first  format  the  entire string, and then break it at the first
26       (from the left) equal sign (=) and use the left portion as the name and
27       the  right portion as the value.  This function is somewhat inefficient
28       in that it first allocates the full name=value, and then  the  call  to
29       hdf_set_value  duplicates  the  value  portion,  and  then  we free the
30       name=value.  Currently, we don't  strip  whitespace  from  the  key  or
31       value.   In  the  future,  this function might work more like reading a
32       single line of an HDF string or file, allowing for attributes and  sym‐
33       links to be specified...  maybe.
34
35

RETURN VALUE

37       None
38
39

SEE ALSO

41       hdf_set_symlink(3),         hdf_get_valuef(3),         compareFunc)(3),
42       hdf_read_string(3),  hdf_obj_value(3),  hdf_get_node(3),   hdf_set_val‐
43       uevf(3),  hdf_sort_obj(3),  hdf_write_file_atomic(3),  hdf_obj_attr(3),
44       hdf_set_valuef(3),         hdf_search_path(3),         hdf_set_attr(3),
45       hdf_dump_str(3),    hdf_get_int_value(3),    hdf_read_string_ignore(3),
46       hdf_get_copy(3),  hdf_copy(3),  hdf_write_file(3),  hdf_get_valuevf(3),
47       hdf_set_value(3),  hdf_set_int_value(3), hdf_dump(3), hdf_get_value(3),
48       hdf_set_copy(3),  hdf_obj_child(3),  hdf_obj_next(3),   hdf_set_buf(3),
49       hdf_write_string(3),    hdf_get_obj(3),   hdf_get_attr(3),   hdf_regis‐
50       ter_fileload(3), hdf_obj_name(3),  hdf_obj_top(3),  hdf_dump_format(3),
51       hdf_get_child(3), hdf_destroy(3), hdf_remove_tree(3), hdf_init
52
53
54
55ClearSilver                    14 November 2006              hdf_set_valuef(3)
Impressum