C: what is the function of an asterisk before a function name? -



C: what is the function of an asterisk before a function name? -

i've been confused see on c programs has unfamiliar function declaration me.

void *func_name(void *param){ ... }

what * imply function? understanding (*) in variable type creates pointer variable can able track address @ latter variable stored in memory. in case of function, don't know * asterisk implies.

the asterisk belongs homecoming type, , not function name, i.e.:

void* func_name(void *param) { . . . . . }

it means function returns void pointer.

c function pointers

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - cuda, pycuda -- how to write complex numbers -- errors:class "cuComplex" has no member "i" -

How do I check if an insert was successful with MySQLdb in Python? -