Difference between revisions of "oapiGetObjectName"

From OrbiterWiki
Jump to navigation Jump to search
m (category)
Line 14: Line 14:
 
''name'' must be allocated to at least size ''n'' by the calling function. If the string buffer is not long enough to hold the object name, the name is truncated.
 
''name'' must be allocated to at least size ''n'' by the calling function. If the string buffer is not long enough to hold the object name, the name is truncated.
  
__NOTOC__
 
 
[[Category:SDK]][[Category:Object management]]
 
[[Category:SDK]][[Category:Object management]]

Revision as of 15:03, 22 July 2005

Returns the name of an object given an object handle.

void oapiGetObjectHandle (
     OBJHANDLE hObj,
     char *name,
     int n)

Parameters

hObj
object handle
name
pointer to character array to receive object name
n
length of string buffer

Notes

name must be allocated to at least size n by the calling function. If the string buffer is not long enough to hold the object name, the name is truncated.