会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
高傲的monkey
那些回不去的,就让它随风而逝...
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页
2016年2月16日
计算全缓冲的大小
摘要: 思路:打开一个空文件,不断向文件中写入一个字符,一个字符占一个字节,num++判断info.st_size中是否有数据,一旦有数据,立刻break。 然后输出num. #include<stdlib.h>#include<stdio.h>#include<string.h>#include<erro
阅读全文
posted @ 2016-02-16 11:29 高傲的monkey
阅读(222)
评论(0)
推荐(0)
2016年2月15日
简单目录操作,几个重要的结构体
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu
阅读全文
posted @ 2016-02-15 23:17 高傲的monkey
阅读(579)
评论(0)
推荐(0)
struct stat结构体简介
摘要: 在使用这个结构体和方法时,需要引入: <sys/types.h> <sys/stat.h> struct stat这个结构体是用来描述一个linux系统文件系统中的文件属性的结构。 可以有两种方法来获取一个文件的属性: 1、通过路径: int stat(const char *path, struc
阅读全文
posted @ 2016-02-15 22:25 高傲的monkey
阅读(611)
评论(0)
推荐(0)
灵活使用动态库进行程序开发
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu
阅读全文
posted @ 2016-02-15 18:47 高傲的monkey
阅读(340)
评论(0)
推荐(0)
获取系统时间,序号追加输出到文本
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu
阅读全文
posted @ 2016-02-15 16:10 高傲的monkey
阅读(433)
评论(0)
推荐(0)
stderr,stdout,a.txt缓冲区别
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu
阅读全文
posted @ 2016-02-15 12:25 高傲的monkey
阅读(499)
评论(0)
推荐(0)
2016年2月14日
几个简单的分配内存
摘要: 1.非指针的操作 char buff[100]; bzero(buff,100);将buff中最开始的n个字节清空; struct stat fileinfo; bzero(&fileinfo, sizeof(fileinfo)); ----------------- struct stat fil
阅读全文
posted @ 2016-02-14 20:43 高傲的monkey
阅读(367)
评论(0)
推荐(0)
阶段小项目2:显示bin格式图片
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu
阅读全文
posted @ 2016-02-14 20:12 高傲的monkey
阅读(359)
评论(0)
推荐(0)
阶段小项目1:循环间隔1秒lcd显示红绿蓝
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>#include<error.h>#include<errno.h>#include<unistd.h>#include<strings.h>#include<stdbool.h> #inclu
阅读全文
posted @ 2016-02-14 19:24 高傲的monkey
阅读(573)
评论(0)
推荐(0)
2016年2月13日
自己写的一个vii总结
摘要: #include<stdlib.h>#include<stdio.h>#include<unistd.h>#include<errno.h>#include<error.h>#include<string.h>int main(int argc ,char **argv){ if(argc != 2
阅读全文
posted @ 2016-02-13 20:30 高傲的monkey
阅读(209)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页
公告