data vs define modes

Netcdf group:

Is there a way to determine if an open netcdf file is in data or
define mode?  Maybe an inquiry function?  An inquiry function would
let me know if I need to call nc_redef or nc_enddef prior to defining
or writing. Thanks,

--Ben


-----------------------------------------------------------------------
Ben Foster                      High Altitude Observatory (HAO)
foster@xxxxxxxx                 phone: 303-497-1595  fax: 303-497-1589  
Nat. Center for Atmos. Res.     P.O. Box 3000 Boulder CO 80307 USA
-----------------------------------------------------------------------