|
Re: malloc?
Hmm.....ingenious. I may well have to use that.
Preprocessor was exactly what I was thinking. When I get time, I'll bet there's a #pragma or something similar that can do the job.
My original idea was to duplicate a basic DOS-Style console app, from the programmer's perspective; printf, scanf, etc; very flexible. And essentially, that's what it's turned out to be, even to the point that my version of scanf takes a pointet to where the data is stored as an argument, rather than returning it, which was not originally intended. The only slight difficulty is that you have to #define the number of read calls you make. But I figure, just leave it at 100 or so until you've got the terminal communication part finalized. Plus, there may yet be a preprocessor way to do this. Gimme a day or two to comment it all and such and I'll post it up here. I'm sure someone will find a uses for it.
__________________
Code:
void function(void)
{
function();
}
Last edited by Jake M : 20-06-2007 at 22:11.
|