Difference between revisions of "oapiGetObjectName"

From OrbiterWiki
Jump to navigation Jump to search
m (sorting specifier)
(Added category.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Returns the name of an object given an object handle.
+
Returns the name of an object given an [[OBJHANDLE|object handle]].
  
 
  void oapiGetObjectHandle (
 
  void oapiGetObjectHandle (
                           OBJHANDLE hObj,
+
                           [[OBJHANDLE]] hObj,
 
                           char *name,
 
                           char *name,
 
                           int n)
 
                           int n)
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.
  
[[Category:API|GetObjectName]][[Category:Object management|GetObjectName]]
+
[[Category: Articles]]
 +
[[Category:OrbiterSDK|GetObjectName]]
 +
[[Category:Object management (SDK)|GetObjectName]]

Latest revision as of 15:49, 16 October 2022

Returns the name of an object given an object handle.

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

Parameters[edit]

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

Notes[edit]

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.