自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

内存对齐初探

test.c #include <stdio.h>struct stu{ char sex; int length; char name[10];};int main(){ char name[10]; struct stu mystu; pri...

2015-04-28 11:09:44 80

标准输入复制到标准输出

#include <unistd.h>#include <stdio.h>#include <stdlib.h>#define BUFFSIZE 4096int main(void){ int n; char buf[BUFFSIZE]; while ((n = read(ST...

2015-04-23 22:39:54 146

myls.c 读目录

 #include <dirent.h>#include <stdio.h>#include <stdlib.h>int main(int argc, char *argv[]){ DIR *dp; struct dirent *dirp; if (argc != 2) ...

2015-04-23 21:11:35 454

Socket epoll

  #include <sys/socket.h>#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <netinet/in.h>#include <string.h>#include <sys/epoll.h&

2015-03-25 16:25:07 71

Linux Socket select IO多路复用

#include <sys/socket.h>#include <stdio.h>#include <errno.h>#include <string.h>#include <stdlib.h>#include <netinet/in.h>#define BACKLOG 5#define M...

2015-03-24 22:54:16 99

Linux Socket 多进程服务器

server.c#include <sys/socket.h>#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <netinet/in.h>#include <signal....

2015-03-24 15:51:08 112

原创 Linux Socket 基础

编写服务端程序server.c #include <sys/socket.h>#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <netinet/in.h>#define ...

2015-03-24 11:10:43 115

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除