hdf_get_copy (3) - Linux Manuals

hdf_get_copy: Returns a copy of a string in the HDF data set

NAME

hdf_get_copy - Returns a copy of a string in the HDF data set

SYNOPSIS

#include <util/neo_hdf.h>

NEOERR* hdf_get_copy (HDF *hdf, const char *name, char **value,
                      const char *defval);

ARGUMENTS

hdf -> the dataset node to start from
name -> the name to walk the data set to
defval -> the default value to return if the node doesn't
exist

DESCRIPTION

hdf_get_copy is similar to hdf_get_value, except that it returns an malloc'd copy of the string.

RETURN VALUE

value -> the allocated string (if defval = NULL, then value
will be NULL if defval is used)