Previous: Object Resources
Up: Object Resources
Next: Getting resource data
Previous Page: Object Resources
Next Page: Getting resource data

Adding resource data

pnt = ids_add_res(name,ivdsn,resid,nwords,data,ierr)

name
Character - Object name
ivdsn
Integer - Object handle (if 0, correct handle is returned)
resid
Character - Resource tag - 4 characters
nwords
Integer - resource length in words. If this number is negative then the memory is allocated for ABS(nwords) but nothing is copied
data
Data to be copied (if nwords>0)
ierr
Returned error flag - should be 0

ids_add_res adds a resource of type resid to object name. The pointer to the new resource is returned. If nwords>0 then nwords words are copied from data, if nwords<0 then nothing is copied but the memory is allocated and the pointer is returned.

wwwd@na49
Fri Nov 4 23:36:02 MET 1994