摘要: 项目下如下指定源码目录SUBDIRS = lib lib/test plugin plugin/utest cgi 源码目录下:AUTOMAKE_OPTIONS=foreignbin_PROGRAMS= bas.fcgibas_fcgi_SOURCES=basFCGI.c\ basCgiAux.c\ basCommon.c\ basOperation.c\ basSearchOp.c\ eggDAO.c\ utility.c\ stringDeal.c\ getString.c\ getQuery.c\ caluPageNum.c\ config.cbas_fcgi_CFLAGS=$(glib 阅读全文
posted @ 2011-06-16 19:10 wangkangluo1 阅读(251) 评论(0) 推荐(0) 编辑
摘要: glib简单使用:#include <errno.h>#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <glib.h>/* * === FUNCTION ====================================================================== * Name: main * Description: main function * ============== 阅读全文
posted @ 2011-06-16 09:01 wangkangluo1 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 多线程实例2:#include <stdio.h> #include <stdio.h>#include <pthread.h>void thread(void) { int i; for(i=0;i<3;i++) printf("This is a pthread.\n"); }int main(void) { pthread_t id; int i,ret; ret=pthread_create(&id,NULL,(void *) thread,NULL); if(ret!=0){ printf ("Creat 阅读全文
posted @ 2011-06-16 07:46 wangkangluo1 阅读(707) 评论(1) 推荐(0) 编辑
摘要: 多线程实例 :lp.c#include <pthread.h>#include <stdio.h>#include <sys/time.h>#include <string.h>#define MAX 10pthread_t thread[2];pthread_mutex_t mut;int number=0, i;void *thread1(){ printf ("thread1 : I'm thread 1\n"); for (i = 0; i < MAX; i++) { printf("threa 阅读全文
posted @ 2011-06-16 07:44 wangkangluo1 阅读(1012) 评论(0) 推荐(0) 编辑