Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1490487
  • 博文数量: 129
  • 博客积分: 1449
  • 博客等级: 上尉
  • 技术积分: 3048
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 18:36
文章分类

全部博文(129)

文章存档

2015年(3)

2014年(20)

2013年(65)

2012年(41)

发布时间:2013-01-21 11:18:49

http://blog.chinaunix.net/uid-9525959-id-2001841.html......【阅读全文】

阅读(1826) | 评论(0) | 转发(0)

发布时间:2013-01-15 14:06:11

/*----------------------------------------------------------------------------------------实现功能: 开启3个线程,这3个线程的ID分别为A、B、C,每个线程将自己的ID在屏幕上打印10遍,要求输出结果必须按ABC的顺序显示,如ABCABC....依次递推。#编译和运行gcc -lpthread -o thread1 thread1.c./thread1#调.........【阅读全文】

阅读(1111) | 评论(0) | 转发(0)

发布时间: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......【阅读全文】

阅读(1580) | 评论(0) | 转发(0)

发布时间: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......【阅读全文】

阅读(986) | 评论(0) | 转发(0)

发布时间:2012-12-14 11:52:25

表头文件:    #include                      #include 定义函数:    int stat(const char *file_name, struct stat *buf);函数说明:    通过文件名......【阅读全文】

阅读(4868) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册