retrieve "puts" command result from C
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

retrieve "puts" command result from C

From: <fabrice.dufour@gmail.com>
Date: Wed Mar 08 2006 - 16:54:30 CET

Hi all,

I want to retrieve the string displayed by the "puts" command from the
C api.
e.g:

$ puts "something"
something

How can I get the string "something" from C ?

Note: I already try Tcl_GetStringFromObj that always returns an empty
string. And Tcl_WriteObj that only display on a channel and not in a
char*.

Fabrice
Received on Sun Apr 30 02:27:29 2006