会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
隔壁王叔叔a
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
14
15
16
17
18
19
20
21
22
···
50
下一页
2017年3月7日
在2440开发板液晶上显示两行字
摘要: 用到了freetype库下面是测试代码:/* example1.c *//* ...
阅读全文
posted @ 2017-03-07 11:00 隔壁王叔叔a
阅读(193)
评论(0)
推荐(0)
2017年3月6日
error: converting to execution character set: Invalid or incomplete multibyte or wide character
摘要: 交叉编译.c文件,遇到如下问题arm-linux-gcc -o show_lines show_lines.c -lfreetype -lmshow_lines.c:199:19: error: converting to execution character set: Invalid or in...
阅读全文
posted @ 2017-03-06 20:34 隔壁王叔叔a
阅读(1941)
评论(0)
推荐(0)
2017年3月4日
宽字节
摘要: 转载请注明出处:http://blog.csdn.net/qq_26093511/article/category/6752927例子: wchar_t *chinese_str = L"韦gif"; unsigned int *p = (wchar_t *)chinese_str; int i...
阅读全文
posted @ 2017-03-04 19:01 隔壁王叔叔a
阅读(227)
评论(0)
推荐(0)
宽字符wchar_t和窄字符char区别和相互转换
摘要: 转自:http://blog.csdn.net/nodeathphoenix/article/details/74167251. 首先,说下窄字符char了,大家都很清楚,就是8bit表示的byte,长度固定。char字符只能表示ASII码表中的256个字符,包括前128个可见字符和后面的12...
阅读全文
posted @ 2017-03-04 17:07 隔壁王叔叔a
阅读(431)
评论(0)
推荐(0)
2017年3月3日
linux获取文件大小的函数
摘要: C语言fstat()函数:由文件描述词取得文件状态头文件:#include #include 定义函数:int fstat(int fildes, struct stat *buf);函数说明:fstat()用来将参数fildes 所指的文件状态, 复制到参数buf 所指的结构中(struct...
阅读全文
posted @ 2017-03-03 09:11 隔壁王叔叔a
阅读(3117)
评论(0)
推荐(0)
2017年3月2日
移植完linux-3.4.2内核,启动系统后使用命令ifconfig -a查看网络配置,没有eth0
摘要: 问题:/ # ifconfig/ # ifconfig eth0 ifconfig: eth0: error fetching interface information: Device not found/ # ifconfig eth0 upifconfig: SIOCGIFFLAGS: No ...
阅读全文
posted @ 2017-03-02 20:04 隔壁王叔叔a
阅读(616)
评论(0)
推荐(0)
查看Linux内核版本的命令
摘要: 方法一: 命令: uname -a 作用: 查看系统内核版本号及系统名称 方法二: 命令: cat /proc/version 作用: 查看目录"/proc"下version的信息,也可以得到当前系统的内核版本号及系统名称 下面是在单板里查看内核版本号和交叉编译器的版本/ #uname -aLinu...
阅读全文
posted @ 2017-03-02 15:43 隔壁王叔叔a
阅读(1495)
评论(0)
推荐(0)
C语言计算日期间隔天数的经典算法解析
摘要: #include #include int day_diff(int year_start, int month_start, int day_start , int year_end, int month_end, int day_end){ int y2, m2, d2; int y1, m...
阅读全文
posted @ 2017-03-02 13:11 隔壁王叔叔a
阅读(2152)
评论(0)
推荐(0)
图解Stm32使用jlink下载程序时jtag接口(SW和JTAG模式)的简化方法
摘要: 转自: http://www.it165.net/embed/html/201308/2332.html用过stm32的人都知道stm32有两种常用下载程序的方法,用串口和jlink。串口下载方法和51差不多不多说,用jlink下载时接口引脚太多导致接口很大,很占pcb的面积,在此我就针对这个问题清...
阅读全文
posted @ 2017-03-02 11:07 隔壁王叔叔a
阅读(1055)
评论(0)
推荐(0)
2017年3月1日
char与wchar_t数据类型
摘要: 转自:http://blog.itpub.net/27634692/viewspace-752200/有的人爱用strcpy等标准ANSI函数,有的人爱用_tXXXX函数,有必要把来龙去脉搞清楚。 为了搞清这些函数,就必须理请几种字符类型的写法。先说一下wchar_t:wchar_t是Unicode...
阅读全文
posted @ 2017-03-01 20:23 隔壁王叔叔a
阅读(643)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
21
22
···
50
下一页
公告