dear experts,
i encounter a problem with the memcpy function here is the piece of code
Code:char ss[1000];
int ss_cnt=0;
case 0:
tmp_val = va_arg(vlist,int);
memcpy(&ss[ss_cnt], &tmp_val, sizeof(int));
ss_cnt += sizeof(int);
printf("int argument=%d\n", ss[ss_cnt]);//here i am getting the value that i have copied
break;
case 2:
tmp_val4 = va_arg(vlist,char *);
memcpy(&ss[ss_cnt], &tmp_val4, sizeof(char *));
printf("string ss[ss_cnt]=%s\n",ss[ss_cnt]);//here i am not getting the value insted some exception i am getting
ss_cnt += sizeof(char *);
break;
here i am passing some arguments , in case 0: when i print the ss[ss_cnt] it gives me right value , when i print the same thing in second case with char *, it gives me exceptions and quits so how to handle for char * is there any modifications need to be done.

