Here is the context of the code:
void THREAD_CC server_thread(void *arg)
{
BIO *client = (BIO *)arg;
...
}
Does the expression (BIO *)arg transform the void pointer arg into a pointer that points to BIO? I’m not sure if I got this right or not.
Any help would be much appreciated!
Z.Zen
It’s called a cast; it doesn’t transform the pointer, it persuades the compiler to take your word that the incoming pointer (which is untyped) is actually a pointer to BIO, and to treat it as such.