|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: printf
Yeah thanks! I was thinking something like that, 'cause I saw it in the 'stdio.h' file, but I wasn't sure. But how do I use the parameters in the function? I mean, they won't have names or anything. Or should I do it like with Assembly functions or something? Please help me out here. Lionel On Thu, 14 Sep 2000, Ben Humphrey wrote: > You can create your own printf(). > > The "..." parameter tells the compiler that there can be unlimited > parameters passed in (too a point I guess it becomes crazy..). > > Try to step in and debug it to fully see what it does. i forget the EXACT > syntax, but I did it once for school, I am sure > I have the program lying around... I created function that did that. It's > real simple. > > Ben > ----- Original Message ----- > From: Lionel Pinkhard <lionelp@worldonline.co.za> > To: <gameprogrammer@gameprogrammer.com> > Sent: Friday, September 15, 2000 12:52 AM > Subject: printf > > > > Hey guys, > > > > Can somebody tell me how exactly printf works? I'm just curious! > > > > What amazes me is that it takes any amount of parameters, how exactly does > > that work? > > > > Caio, > > > > Lionel > > > > ================================================================= > > The GameProgrammer.Com mailing list is for the open discussion > > of any topic related to the art, science, and business of > > programming games. This list is especially tolerant of beginners. > > We were all beginners once > > > > To SUBSCRIBE or UNSUBSCRIBE please visit: > > http://gameprogrammer.com/mailinglist.html > > > > ================================================================= > The GameProgrammer.Com mailing list is for the open discussion > of any topic related to the art, science, and business of > programming games. This list is especially tolerant of beginners. > We were all beginners once > > To SUBSCRIBE or UNSUBSCRIBE please visit: > http://gameprogrammer.com/mailinglist.html > ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|