COPY_STRING

Previous  Next

 

COPY_STRING( outstring, instring )

 


 

Creates a new string suitable to be used as a return string using RETURN_STRING from the instring parameter.

 

Example

 

int _hello_func( mb_interpreter_t* s, void** l )

{

  // Parse Empty Parameters

  BEGIN_PARSE( s, l )

  END_PARSE

 

  // Create output String

  COPY_STRING( pHello, "HELLO" );

 

  // Return the string "HELLO"

  RETURN_STRING( pHello );

}