I want to create a simple structure that holds an identifier of type int and a value of any kind. Should I use
I want to send/receive a memory address via a socket in C. What I have is the following: void *ptr = malloc(122); /* So the pointer points to some valid address */
I need to access an object in a buffer, pointed by a void pointer. The object开发者_高级运维 is located at a certain offset but since arithmetic on a void pointer is prohibited how can I access the ob
Why can\'t I pass a void* by reference? The compiler allows me to declare a function with the following signature:
int x = 5; int *xPtr = &x; void **xPtrPtr = &xPtr; printf(\"%d\\n\", *(int*)*xPtrPtr); I have a void pointer po开发者_高级运维inting to an int pointer. What is the syntax for properly castin
I have a generic linked list implemen开发者_如何学Gotation with a node struct containing a void* to data and a list struct that holds a reference to head. Now here is my problem a node in the linked l
I am working on a project where I need to send over a certain IPC stack, (in my case, LCM), and the thing is I need to provide the IPC a variable length struct. I have
I am new to C and for my first project I need to implement an array based queue. I want my queue to be able to hold any kind of object so I created a QueueElement structure to hold a void pointer to a
I\'ve written the following bit of code that is producing a warning: initialization makes pointer from integer without a cast
My question here is I had seen code like this for a multithreading application: void Thread( void* pParams )