NetCDF 4.9.3
Loading...
Searching...
No Matches
datt.c
Go to the documentation of this file.
1/*Copyright 2018 University Corporation for Atmospheric
2 Research/Unidata. See copyright file for more info. */
8
9#include "config.h"
10#include "ncdispatch.h"
11
47
49 /* Start doxygen member group. */
55
112int
113nc_rename_att(int ncid, int varid, const char *name, const char *newname)
114{
115 NC* ncp;
116 int stat = NC_check_id(ncid, &ncp);
117 if(stat != NC_NOERR) return stat;
118 TRACE(nc_rename_att);
119 return ncp->dispatch->rename_att(ncid, varid, name, newname);
120}
121
176int
177nc_del_att(int ncid, int varid, const char *name)
178{
179 NC* ncp;
180 int stat = NC_check_id(ncid, &ncp);
181 if(stat != NC_NOERR) return stat;
182 TRACE(nc_del_att);
183 stat = ncp->dispatch->del_att(ncid, varid, name);
184 return stat;
185}
186 /* End doxygen member group. */
187
int nc_del_att(int ncid, int varid, const char *name)
Delete an attribute.
Definition datt.c:177
int nc_rename_att(int ncid, int varid, const char *name, const char *newname)
Rename an attribute.
Definition datt.c:113
#define NC_NOERR
No Error.
Definition netcdf.h:378