[ale] gcc programming
Geoffrey
esoteric at 3times25.net
Sun Jan 23 17:07:28 EST 2005
Fulton Green wrote:
> On Sat, Jan 22, 2005 at 09:52:41PM -0500, Geoffrey wrote:
>
>>You'll likely want to write the debug info to standard error and capture.
>>
>>Here's how I do it in C so that I can track where the data was spit out:
>>
>>(void)fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, debugdata);
>>
>>Then when you run your program, do this:
>>
>>program 2> program.err
>
>
> Which is basically what I said in my post earlier tonight, except I was
> too lazy to copy 'n' paste the printf() example from Google.
I did not copy and paste, I typed it from memory, thank you. I don't
need help from Google to write C.
> Geoffrey ... did you not receive my earlier post?
It's very likely they cross posted, I did catch yours after I posted mine.
--
Until later, Geoffrey
More information about the Ale
mailing list