Posted by Kwisatz Haderach on 2000-03-11
> in other words you want to change a data without
> having to return it?
>
> like
>
> int do_something(char &ptr, struct abc junk[])
> {
> ...
> ptr += junk[0].width;
> return strlen(junk[0].morejunk);
> }
>
> void some_function(char *line)
> {
> struct abc foo[3] = {};
> int count = do_something(line, foo);
>
> //line still points to the same place!
>
> ...
> }
> In C++, [...]
Yes, I know it can be done in C++. I also know HOW it
can be done in C++. But I wanted to do it in C. And
the problem has been fixed. Thanks for the reply! :)
-Sharvil Nanavati
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
To signoff send a mail to listserver@xxxx.xx.xx with
"signoff tcg" in the body of your message.
Previous post | Next post | Timeline | Home