mb_value_t_to_string

Previous  Next

 

char* mb_value_t_to_string( mb_value_t value, LPSTR lpszVal )

 


 

Converts the mb_value_t data to a string converting any data as needed.to the output buffer.  The function will return the address of the buffer containing the converted string.

 

Example

 

/////////////////////////////////////////////////////////////////////////////

// Convert a supplied value to STRING

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

{

  // Parse Parameter

  BEGIN_PARSE( s, l )

     POP_VALUE( val )

  END_PARSE

 

  // Need a buffer to hold output from mb_make_value_t

  char buffer[256];

 

  // Copy to output string that we can return

  COPY_STRING( pOutput, mb_value_t_to_string( val, buffer ) );

 

  // Return Converted String

  RETURN_STRING( pOutput );

}