#include
#include
#include
typedef struct{
char size;
char data[1];
}Node;
int main(int argc, char *argv[])
{
char *s = "hello,world"
int len = 11;
Node *p = NULL;
p = (Node*)malloc(sizeof(Node)+len);
if(p != NULL){
p->size = len;
memmove(p->data, s, len);
}
free(p);
p = NULL;
return 0;
}
阅读(571) | 评论(2) | 转发(0) |