2008-09-05から1日間の記事一覧
メッセ送りつけられたので、晒しage。 #include <stdio.h> #include <stdlib.h> #include <string.h> struct _hoge { char a[17]; int b; char c[19]; }; void alloc(struct _hoge *ptr) { ptr = (struct _hoge *)malloc(sizeof(struct _hoge)); printf("alloc: %p\n", ptr); } int main(v</string.h></stdlib.h></stdio.h>…