mb_print_format

Previous  Next

 

status_t mb_print_format( mb_interpreter_t* s, const char* lpszInStr, char* lpszOutStr )

 


 

This function will replace C/C++ new line and carriage return, tab and double back-slashes with the correct control character.  This is used when OPTION FORMAT is ON.  Please see OPTION FORMAT for more information on the Escape Sequences.

 

Example

 

char line[256];

 

// Make sure OPTION FORMAT is ON

mb_set_option_flags( bas, mb_get_option_flags( bas ) | _OF_FORMAT );

 

// Replace Escape Sequences

mb_print_format( bas, "Hello World !\n", line );

 

// Output Line

mb_print( bas, line );