jeudi 17 mars 2022

Pointer to a pointer and dereferencing in c++

int (*streamSize) (std::string ,tePddLocation ); //this is function pointer 

Here i am using function pointer in fallowing way can some body what does it mean

*(int**)(&streamsize)=dynamic_symbol() //here i am typecasting dynamic_symbol() as it returns 
// void* that is address of dlsym and if and other possible ways please do let me know

Aucun commentaire:

Enregistrer un commentaire