76          size_t len, 
const char** value)
 
   79    int stat = NC_check_id(ncid, &ncp);
 
   81    return ncp->dispatch->put_att(ncid, varid, name, 
NC_STRING,
 
 
  154        size_t len, 
const char *value)
 
  157   int stat = NC_check_id(ncid, &ncp);
 
  159   return ncp->dispatch->put_att(ncid, varid, name, 
NC_CHAR, len,
 
 
  223       size_t len, 
const void *value)
 
  226   int stat = NC_check_id(ncid, &ncp);
 
  228   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  257         nc_type xtype, 
size_t len, 
const signed char *value)
 
  260   int stat = NC_check_id(ncid, &ncp);
 
  262   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  291         nc_type xtype, 
size_t len, 
const unsigned char *value)
 
  294   int stat = NC_check_id(ncid, &ncp);
 
  296   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  325         nc_type xtype, 
size_t len, 
const short *value)
 
  328   int stat = NC_check_id(ncid, &ncp);
 
  330   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  359           nc_type xtype, 
size_t len, 
const int *value)
 
  362   int stat = NC_check_id(ncid, &ncp);
 
  364   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  393        nc_type xtype, 
size_t len, 
const long *value)
 
  396   int stat = NC_check_id(ncid, &ncp);
 
  398   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
  399                 (
void *)value, longtype);
 
 
  427         nc_type xtype, 
size_t len, 
const float *value)
 
  430   int stat = NC_check_id(ncid, &ncp);
 
  432   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  461          nc_type xtype, 
size_t len, 
const double *value)
 
  464   int stat = NC_check_id(ncid, &ncp);
 
  466   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  495         nc_type xtype, 
size_t len, 
const unsigned char *value)
 
  498   int stat = NC_check_id(ncid, &ncp);
 
  500   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  529          nc_type xtype, 
size_t len, 
const unsigned short *value)
 
  532   int stat = NC_check_id(ncid, &ncp);
 
  534   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  563        nc_type xtype, 
size_t len, 
const unsigned int *value)
 
  566   int stat = NC_check_id(ncid, &ncp);
 
  568   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  598            const long long *value)
 
  601   int stat = NC_check_id(ncid, &ncp);
 
  603   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
  633             const unsigned long long *value)
 
  636   int stat = NC_check_id(ncid, &ncp);
 
  638   return ncp->dispatch->put_att(ncid, varid, name, xtype, len,
 
 
int nc_put_att(int ncid, int varid, const char *name, nc_type xtype, size_t len, const void *value)
Write an attribute of any type.
int nc_put_att_uint(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned int *value)
Write an attribute of type unsigned int.
int nc_put_att_string(int ncid, int varid, const char *name, size_t len, const char **value)
Write a string attribute.
int nc_put_att_ubyte(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *value)
Write an attribute of type unsigned char.
int nc_put_att_text(int ncid, int varid, const char *name, size_t len, const char *value)
Write a text attribute.
int nc_put_att_schar(int ncid, int varid, const char *name, nc_type xtype, size_t len, const signed char *value)
Write an attribute of type signed char.
int nc_put_att_ushort(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned short *value)
Write an attribute of type unsigned short.
int nc_put_att_long(int ncid, int varid, const char *name, nc_type xtype, size_t len, const long *value)
Write an attribute of type long.
int nc_put_att_float(int ncid, int varid, const char *name, nc_type xtype, size_t len, const float *value)
Write an attribute of type float.
int nc_put_att_uchar(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *value)
Write an attribute of type unsigned char.
int nc_put_att_longlong(int ncid, int varid, const char *name, nc_type xtype, size_t len, const long long *value)
Write an attribute of type long long.
int nc_put_att_ulonglong(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned long long *value)
Write an attribute of type unsigned long long.
int nc_put_att_int(int ncid, int varid, const char *name, nc_type xtype, size_t len, const int *value)
Write an attribute of type int.
int nc_put_att_short(int ncid, int varid, const char *name, nc_type xtype, size_t len, const short *value)
Write an attribute of type short.
int nc_put_att_double(int ncid, int varid, const char *name, nc_type xtype, size_t len, const double *value)
Write an attribute of type double.
#define NC_UINT
unsigned 4-byte int
#define NC_INT
signed 4 byte integer
#define NC_BYTE
signed 1 byte integer
#define NC_DOUBLE
double precision floating point number
#define NC_UBYTE
unsigned 1 byte int
#define NC_FLOAT
single precision floating point number
#define NC_SHORT
signed 2 byte integer
#define NC_INT64
signed 8-byte int
#define NC_UINT64
unsigned 8-byte int
#define NC_NOERR
No Error.
#define NC_USHORT
unsigned 2-byte int
#define NC_CHAR
ISO/ASCII character.
int nc_type
The nc_type type is just an int.