Method: NumRu::NetCDFAtt#clone
- Defined in:
- ext/netcdfraw.c
#clone ⇒ Object
The methods of the NetCDFAtt class
532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'ext/netcdfraw.c', line 532
VALUE
NetCDF_att_clone(VALUE att)
{
VALUE clone;
struct NetCDFAtt *na1, *na2;
Data_Get_Struct(att, struct NetCDFAtt, na1);
na2 = NetCDF_att_init(na1->ncid, na1->varid, na1->name);
clone = Data_Wrap_Struct(cNetCDFAtt, 0, Netcdf_att_free, na2);
CLONESETUP(clone, att);
return clone;
}
|