Returns the string representation of LISP data as if it were output by the prin1 function
(vl-prin1-to-string data)
A string containing the printed representation of data as if displayed by prin1.
_$ (vl-prin1-to-string "abc")
"\"abc\""
_$ (vl-prin1-to-string "c:\\acadwin")
"\"C:\\\\ACADWIN\""
_$ (vl-prin1-to-string 'my-var)
"MY-VAR"
See Also
-
The vl-princ-to-string function.