hello!
I've a problem with the clone.. Its definition is as follows:
if I define a simpleCode:int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, .../* pid_t *pid, struct user_desc *tls, pid_t *ctid */ );everything's ok: i can call for exampleCode:int function(void *unused)
or also justCode:clone ((int (*)(void *)function,&stack[1024],....
the problem is if i want to cast the void* to, e.g. an int*Code:clone (function,&stack....
i tried to do things like
but nothing works... where is the mistake? thank for every answer!Code:int function (int *nPtr){...} int a; clone((int(*)(int *)function(&a),.... clone (function ((int *)&a), ...



LinkBack URL
About LinkBacks



CornedBee