NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Strings

NOTE: The netcdf-hdf mailing list is no longer active. The list archives are made available for historical reasons.

I believe you just allocate array of char pointers, then library does the rest. You only have to use H5Dvlen_reclaim function after you are done. See tvlstr.c test in the test directory.

Elena


At 08:36 PM 9/8/2005, Ed Hartnett wrote:
Elena Pourmal <epourmal@xxxxxxxxxxxxx> writes:

> Hi Ed,
>
> You should be able to use strlen function on each element of your
> array to get a length of  each string.
>
> Elena
>

But I can't do that until I read it.

How do I know how much memory to allocate to read it?

Thanks!

Ed
--
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx

-----------------------------------------------------------------------------------------------
Elena Pourmal, HDF QA, Maintenance and Support Team Leader
NCSA University of Illinois at Urbana-Champaign
605 E. Springfield Ave.
Champaign, IL 61820

epourmal@xxxxxxxxxxxxx
(217)333-0238 (office)
(217)244-1987 (fax)
----------------------------------------------------------------------------------------------



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