69,369
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
typedef short U16;
typedef unsigned char U8;
typedef struct
{
U16 n;
U16 len;
U8 c[12];
}my_struct;
int main()
{
my_struct p;
char *ll = "20";
sscanf (ll, "%d", &(p.len));
printf("s=%d\n",p.len);
}