By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,325 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

printf in python

P: n/a
Hy, I've a problem with may python library generated with swig from C
code. I works and I can access all function but a simèple function
that print a string don't work's.
The function is like this:
int PrintTEST()
{
printf("TEST ");
return 1;
}

If I call the function (myDLL.PrintTEST() ) the function print only
the returned value, not the string "TEST". Could anybody help me?

Thanks

Gianluca
Jun 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
gianluca <ge*******@gmail.comwrites:
Hy, I've a problem with may python library generated with swig from C
code. I works and I can access all function but a simèple function
that print a string don't work's.
The function is like this:
int PrintTEST()
{
printf("TEST ");
return 1;
}
Finish the printed string with a newline, or call fflush(stdout). By
default stdout is line-buffered when connected to interactive displays.
Jun 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.