<pre>void func1(char *e){ char *p1; p1=malloc(100); sprintf(p1,error:"%s'.",e); local_log(p1); } </pre>
<pre> int func2(char *filename) { FILE *fp; int key; fp=fopen(filename,"r"); fscanf(fp,"%d",&key); return key; } </pre>
<pre> void func3(char *info){ char *p,*pp; p=malloc(100); pp=p; free(p); sprintf(pp,*info:"%s'.",info); free(pp); } </pre>
选项全部正确