int main(void)
{
uintmax_t dimensions[] = { 170, 190 };
uintmax_t tags, t;
const char *name, *value;
return 1;
}
return 1;
}
return 1;
}
return 1;
}
if (!value) {
}
else if (value[0] == '\0') {
}
else {
}
return 1;
}
for (t = 0; t < tags; t++) {
}
return 1;
}
return 1;
}
return 1;
}
return 1;
}
return 1;
}
return 0;
}
const char * gta_get_tag_name(const gta_taglist_t *restrict taglist, uintmax_t i)
Get the tag name with the given index.
gta_taglist_t * gta_get_dimension_taglist(gta_header_t *restrict header, uintmax_t i)
Get the tag list of a dimension (modifiable).
const char * gta_get_tag_value(const gta_taglist_t *restrict taglist, uintmax_t i)
Get the tag value with the given index.
gta_result_t
GTA result type.
Definition: gta.h:214
@ GTA_OK
Success / no error.
Definition: gta.h:215
gta_taglist_t * gta_get_global_taglist(gta_header_t *restrict header)
Get the global tag list (modifiable).
void gta_destroy_header(gta_header_t *restrict header)
Destroy a GTA header structure and free its resources.
void gta_unset_all_tags(gta_taglist_t *restrict taglist)
Unset all tags.
gta_result_t gta_set_components(gta_header_t *restrict header, uintmax_t n, const gta_type_t *restrict types, const uintmax_t *restrict sizes)
Set the components of an array element.
gta_taglist_t * gta_get_component_taglist(gta_header_t *restrict header, uintmax_t i)
Get the tag list of a component (modifiable).
const char * gta_get_tag(const gta_taglist_t *restrict taglist, const char *restrict name)
Get a tag value by its name.
uintmax_t gta_get_tags(const gta_taglist_t *restrict taglist)
Get the number of tags in a tag list.
struct gta_internal_header_struct gta_header_t
The GTA header type.
Definition: gta.h:194
gta_result_t gta_create_header(gta_header_t *restrict *restrict header)
Create a new GTA header structure and initialize it.
struct gta_internal_taglist_struct gta_taglist_t
The GTA tag list type.
Definition: gta.h:205
gta_result_t gta_set_tag(gta_taglist_t *restrict taglist, const char *restrict name, const char *restrict value)
Set a tag.
gta_result_t gta_set_dimensions(gta_header_t *restrict header, uintmax_t n, const uintmax_t *restrict sizes)
Set the dimensions.
gta_result_t gta_unset_tag(gta_taglist_t *restrict taglist, const char *restrict name)
Unset a tag.
gta_type_t
GTA data types.
Definition: gta.h:271
@ GTA_FLOAT32
IEEE 754 single precision floating point (on many platforms: float)
Definition: gta.h:282
@ GTA_UINT16
uint16_t
Definition: gta.h:275
@ GTA_CFLOAT64
complex (re,im) based on two GTA_FLOAT64
Definition: gta.h:286