OpenOCD
tcl-common.h File Reference
Include dependency graph for tcl-common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * tcl_escape_alloc (Jim_Interp *interp, const char *s)
 Convert a C string to a string that can be used for Tcl list. More...
 

Function Documentation

◆ tcl_escape_alloc()

char* tcl_escape_alloc ( Jim_Interp *  interp,
const char *  s 
)

Convert a C string to a string that can be used for Tcl list.

The returned string has to be deallocated through free().

Parameters
interpthe Tcl interpreter
sthe C string to convert
Returns
converted string or NULL on error

Definition at line 25 of file tcl-libjim.c.

Referenced by COMMAND_HANDLER(), and COMMAND_HELPER().