http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printf



They're probably changed to some sort of array, or pointer to the memory
address where they start or something
-----Original Message-----
From: Lionel Pinkhard <lionelp@worldonline.co.za>
To: gameprogrammer@gameprogrammer.com <gameprogrammer@gameprogrammer.com>
Date: Saturday, September 16, 2000 6:26 AM
Subject: 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
>
>

=================================================================
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