From: Linus N. <li...@el...> - 2003-09-19 20:21:44
|
I usually do something like: //########### char cmd[256]; sprintf(cmd, "puts \"Hello :)\""); Tcl_Eval(interp, cmd); //########### ...There might be a better way, but it does the job. There is however a difference from printf(): As with any tcl commands that use the Tcl interpreter, you should not call this code from a thread other than the event handler, but I guess you normally don't. Regards, Linus On Thu, 18 Sep 2003 18:41:55 -0400, Kevan Hashemi wrote: >Dear TCL Users, > >I have a C extension from a colleague who works on a unix workstation. He >has plenty of calls to printf. He claims that these calls print text on the >TCL console. But printf doesn't do anything when I put it in my extensions. >Everything else works (tcl_globaleval, and so on), but not printf. > >How do I direct C's standard output to the MacOS X Wish console? > > >Yours, Kevan Hashemi > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Tcl-mac mailing list >Tc...@li... >https://lists.sourceforge.net/lists/listinfo/tcl-mac |