struct node
{
int a;
int b;
char c;
};
template
void myfun(T *pt , unsigned char *buf)
{
printf("sizeof(T):%d\n", sizeof(T));
};
int main()
{
struct node info = {1,2,'a'};
struct node copyinfo = {0};
unsigned char *p = (unsigned char *)&info;
myfun(©info, p);
printf("%d %d %c\n", copyinfo.a, copyinfo.b, copyinfo.c);
}