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                               ATTRIBUTE_PRINTF(2,3);
14
15
16
17

ARGUMENTS

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

DESCRIPTION

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

RETURN VALUE

38       None
39
40

SEE ALSO

42       hdf_set_symlink(3),         hdf_get_valuef(3),         compareFunc)(3),
43       hdf_dump_str(3),    hdf_get_int_value(3),    hdf_read_string_ignore(3),
44       hdf_copy(3),   hdf_get_node(3),   hdf_set_value(3),   hdf_obj_child(3),
45       hdf_read_string(3),      hdf_set_buf(3),      hdf_register_fileload(3),
46       hdf_get_obj(3),  hdf_get_attr(3),  hdf_obj_top(3),  hdf_dump_format(3),
47       hdf_destroy(3),  hdf_init(3),  hdf_obj_value(3),   hdf_write_string(3),
48       hdf_set_valuevf(3),      hdf_sort_obj(3),     hdf_write_file_atomic(3),
49       hdf_obj_attr(3), hdf_set_valuef(3), hdf_get_copy(3), hdf_write_file(3),
50       hdf_get_valuevf(3),          hdf_set_int_value(3),         hdf_dump(3),
51       hdf_get_value(3), hdf_set_copy(3), hdf_obj_next(3), hdf_search_path(3),
52       hdf_obj_name(3), hdf_set_attr(3), hdf_get_child(3), hdf_remove_tree
53
54
55
56ClearSilver                      12 July 2007                hdf_set_valuef(3)
Impressum