Regular API function

simGetObjectName / sim.getObjectName

Description DEPRECATED. See sim.getObjectAlias instead.
C/C++
synopsis
simChar* simGetObjectName(simInt objectHandle)
C/C++
parameters
objectHandle: handle of the object. By adding sim.handleflag_altname to the object handle, the object alternative name can be retrieved.
C/C++
return value
Name (or alternative name) of the object if operation was successful, nullptr otherwise. The user is in charge of destroying the returned buffer with simReleaseBuffer
Lua synopsis string objectName=sim.getObjectName(int objectHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart (but nil instead of nullptr, and simReleaseBuffer does not need to be called)