2012年11月19日
摘要: 一个通用的linux系统中C语言版读取配置文件的函数。#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <errno.h>#define KEYVALLEN 100/* 删除左边的空格 */char * l_trim(char * szOutput, const char *szInput){ assert(szInput != NULL); assert(szOutput != NULL); assert(szOut 阅读全文
posted @ 2012-11-19 13:03 comeby 阅读(19426) 评论(1) 推荐(1) 编辑