Ken said:
On 4/22/2014 9:37 AM, Bill Cunningham wrote:
[...]
int *p;
Ok when do I use p and when do I use *p. That right now I am working
on.
If "p" is a pointer, you use "p" when you want the pointer, and "*p"
when you want what it points to. (And you use "&p" when you want to
point to the pointer.)
I understood that much. But I think some of the problem with this here
is documentation for certain functions. Docs don't always do well in
explaining what a function wants. Seeing a parameter wants a generic pointer
can mean it wants p or *p or &p. Just depending on the function of the
Obviously you don't understand. Since *p cannot be a pointer, how can
you include in the list of possible arguments that would satisfy a
request for a pointer. Since this has been pointed out to you
multiple times, why do you keep repeating the same erroneous
statements?
function. And with a parameter that says void * makes things even worse
because it is written to take any type. I am speaking of getaddrinfo() in
particularly. It deals with struct addrinfo type.
Since none of the parameters for getaddrinfo have type void*, you are
either mixing apples and oranges or engaging in your usual technique
of throwing out random C related topics with no regard to their
relevance.