发布时间:2013-01-21 11:18:49
http://blog.chinaunix.net/uid-9525959-id-2001841.html......【阅读全文】
发布时间:2013-01-15 14:06:11
/*----------------------------------------------------------------------------------------实现功能: 开启3个线程,这3个线程的ID分别为A、B、C,每个线程将自己的ID在屏幕上打印10遍,要求输出结果必须按ABC的顺序显示,如ABCABC....依次递推。#编译和运行gcc -lpthread -o thread1 thread1.c./thread1#调.........【阅读全文】
发布时间:2012-12-31 10:17:01
#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h> //read/write/closeint open(const char *path, int access,int mode) path 要打开的文件路径和名称 &nb......【阅读全文】
发布时间:2012-12-21 20:42:48
//--- Makefile范本, 简洁CC = gccCFLAGS += -Wall -gOBJ := smtpclient.o xucommon.o owtest.o xuudp.oworld: compile%.o: %.c $(CC) $(CFLAGS) -c -o $@ $<xucommon.o: $(CC) $(CFLAGS) -c ../xucommon/xucommon.cxuudp.o: $(CC) $(CFLAGS) -c ../xucommon/xuudp.ccompile: $(OBJ) $(CC) $(CFLAGS) -o smtptest $(OBJ)clea......【阅读全文】
发布时间:2012-12-14 11:52:25
表头文件: #include #include 定义函数: int stat(const char *file_name, struct stat *buf);函数说明: 通过文件名......【阅读全文】