2011 Unidata NetCDF Workshop > Using Groups and NetCDF-4 Types
16.5 Example Creating an Array of Strings
This C example writes an array of strings as an attribute.
C example writing a string array attribute
- This attribute is an array of strings, each of different length.
- It was not necessary to count characters or use a maximum
length.
- No space is wasted padding out strings corresponding to shorter lines.
2011 Unidata NetCDF Workshop > Using Groups and NetCDF-4 Types