摘要: 写个读ini文件的小接口,存下来备用。#include<stdio.h>#include<stdlib.h>#include<string.h>#include<errno.h>#define KEYVALLEN 64 static int trim(char * buf){ if(!buf)return 0; char *p1,*p2; p1=p2=buf; while(p2 && *p2!='\0'){ if(!isspace(*p2) && p1<p2) *p1=*p2,p1++; el 阅读全文
posted @ 2013-05-24 16:55 zippyer 阅读(635) 评论(0) 推荐(0) 编辑