摘要:
写个读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 阅读全文