how can i convert a void array to unsigned char array?
could you plz give a little sample?

could not understand your question. Did you declared a void pointer and then allocated memory? I mean if you could post some code snippet what you want to do, i can try to answer.

#include <stdio.h>
void foo(void *);
int main()
{
    char str[] = "This is a tes";
    
    foo(str);
    
    getchar();
    return 0;
}
void foo(void *str)
{
     printf("%s",(char*)str);
}
/* my output
This is a tes
*/

ssharish2005