Associate
- Joined
- 22 Jan 2005
- Posts
- 186
Hello all,
Strange question, but I really need this to work.
I have a C program which prints out, to a file, python code. As in, I use printf to print Python Code to a text file, which can later be used by Python.
In one line, I try something like this:
fprintf(out, "print "%d %d" %(altitude,azimuth))\n");
That is, when Python reads it, it prints the values of Altitude and Azimuth,
The problem is, of course, that C thinks that it needs an argument. How do I tell C...Please don't try and process %d....just print it!
Thank you
Strange question, but I really need this to work.
I have a C program which prints out, to a file, python code. As in, I use printf to print Python Code to a text file, which can later be used by Python.
In one line, I try something like this:
fprintf(out, "print "%d %d" %(altitude,azimuth))\n");
That is, when Python reads it, it prints the values of Altitude and Azimuth,
The problem is, of course, that C thinks that it needs an argument. How do I tell C...Please don't try and process %d....just print it!
Thank you
