So sayeth the Book of Downs, "Conversion of pointer."
This was taken out of context. It made a lot more sense in the
original post, however...
KY> void test( int i )
KY> {
KY> i=5;
KY> return;
KY> }
KY> You're not getting a pointer back,
CD> You aren't getting anything back!!
Sure you are! You're getting the modified value of i. In the above,
i would be an "in/out" parameter.
CD> How about this one...
CD> int test()
CD> {
CD> return 5;
CD> }
CD> Kinda questionable in the utility department....
I was just using the code the original poster used. In his example, he
was setting the variable to 5, so that's all I was doing.
-=Kevin=-
Fidonet: 1:363/309 TAGnet : 21:320/0 IntraTec: 191:670/0
JAMNet : 75:82/1 BegNet : 44:244/702 SinNet : 18:28/1
Homepage: http://www.commercialweb.com
Internet: kyochum@worldramp.net
Internet: kevin.yochum%309@satlink.oau.org
--- Blue Wave/386 v2.20
---------------
* Origin: Forethought BBS -=- Orlando, FL -=- 407-679-6561 (1:363/309)
|