simPushStringOntoStack

Pushes a string onto the stack. The string may contain any values, including embedded zeros. The string will then be located at the top of the stack

C++ synopsis

int simPushStringOntoStack(int stackHandle, const char* value, int stringSize)

Arguments

  • stackHandle: stack handle obtained with simCreateStack.
  • value: a string
  • stringSize: length of the string. If you specify 0, the string is a text string and its length will be automatically determined.

Return

  • -1 in case of an error.


See also: