9 #include "ncdispatch.h"
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,