2010-09-09から1日間の記事一覧

test

ツイッター連携てすと

ちょっとだけべんりかも

#include <stdio.h> #include <stdlib.h> void argdump(int argc, char** argv){ FILE* fp = fopen("params","w"); int i; if(fp==NULL){ fprintf(stderr,"file open error"); } for(i=0; i</stdlib.h></stdio.h>

memo

c

malloc_or_exit() とか fopen_or_exit() とか fopenf() とか つくるFILE* fopenf( const char* format, const char* mode, ...){ var_argがなんとかかんとか char* filename = malloc(); strcmp(filename); return fopen(filename,mode); }