I have a linked-list. I want to put the current ptr sBuffer
each link is :
typedef struct{
SearchContext *context;
void *history;
char id[32];
}ContextmenuContext;
but instead I'm getting the address of the next link.
I think "%p" is the bug.
what does printing "%p" do?
snprintf_safe(sBuffer,"%p",((ContextmenuContext*)current)->history);