![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言学习
weixin_42326724
这个作者很懒,什么都没留下…
展开
-
C语言可变参数处理
C语言可变参数获取及其简单处理:#include "stdafx.h"#include <string.h>#include <stdlib.h>#include <stdarg.h>#define MYPRINTF(a, format, ...) \ do \ { \ char* str = (char*)ma...原创 2018-08-03 20:19:38 · 215 阅读 · 0 评论 -
Linux 串口应用简单开发
Linux 串口配置,简单写操作: #include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <termios.h>#include <stdlib.h>#include <stdio.h>#include <unistd...原创 2018-08-03 20:17:08 · 358 阅读 · 0 评论 -
C语言搜索文件夹及删除
C语言搜索文件夹及删除:#include <ctype.h>#include <dirent.h>#include <errno.h>#include <linux/input.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>原创 2018-08-03 20:31:14 · 1431 阅读 · 0 评论 -
Linux IIC读写
Linux IIC读写#include <stdio.h>#include <linux/types.h>#include <stdlib.h>#include <fcntl.h>#include <unistd.h>#include <sys/types.h>#include <sys/ioctl.h...转载 2018-08-14 19:59:38 · 1704 阅读 · 1 评论 -
Linux网络地址转换
h表示主机(host),n表示网络(net),l表示32位长整数,s表示16短整数。uint32_t转化为点分格式字符串ip:struct in_addr ip4_addr;ip4_addr.s_addr = uint32_t;inet_ntoa(ip4_addr);点分格式字符串ip转化为uint32_t:ntohl(inet_addr("192.168.1.1"));...原创 2018-11-21 20:48:39 · 417 阅读 · 0 评论