A92: Re: A89: Re: Re: "Transfer" of values between C and ASM
[Prev][Next][Index][Thread]
A92: Re: A89: Re: Re: "Transfer" of values between C and ASM
> > list_header *List_Find(list_pointer *pointer, USHORT ID);
>
> what does the * do?
>
> > You can now do this:
> > list *mylist;
>
> is this how to define a list? and again what does the * do?
It signals that the following variable is a pointer to an instance of the given
type, instead of a variable of that type.
This is how you desine a list *in Prosit", although you should probably write:
list *mylist = 0;
to initiate it.
> > list_header *alistitem;
> > alistitem = List_Find(&mylist, 42);
>
> what is the & for?
It gives the argument as a pointer to <mylist> and not <mylist> itself.
/ Niklas Brunlid
Check out Prosit for the TI-89 / TI-92 Plus at http://c625.sparta.lu.se
Random PQF Quote follows:
"I expect I've saved the day, right?"
-- Gaspode the wonder dog
(Terry Pratchett, Moving Pictures)
Follow-Ups:
References: