Re: NF_PUT_ATT_TEXT question

Ethan,

> Does anyone know what the behavior is supposed to be when you pass a 0 length
> to NF_PUT_ATT_TEXT?

Yes, the attribute is supposed to be created with 0 length and will be
stored in the file that way.  You should be able to later inquire
about the existence and length of such an attribute and its length
should be returned as zero.

The CDL notation, however, cannot distinguish between a string
attribute that has zero length and a string attribute that contains
only a single null byte.  So ncdump will display the value as "" in
either case.

--Russ

  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: