[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #BOE-466631]: bug ?

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDF #BOE-466631]: bug ?
  • Date: Fri, 17 Apr 2009 10:56:43 -0600

> Yes that was exactly that.
>
> I fixed the read part.
>
> But I'm wondering if  should use nc_put with strlen+1 (with the \0'
> character) or just strlen as before?
>
> If I use strlen+1 is it going to confuse non-C interfaces like Java?

Here's advice from the C Users Guide about exactly that question:

  http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-c.html#Strings

--Russ


Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: BOE-466631
Department: Support netCDF
Priority: Normal
Status: Closed