- 博客(6)
- 资源 (25)
- 收藏
- 关注
原创 windows 上的 _splitpath 函数在 linux 平台下的简单实现
在做移植时, 发现了 _splitpath 在 linux 下是没有的,于是决定自己写下,也不难。首先百科到如下内容:声明定义void _splitpath( const char *path, char *drive, char *dir, char *fname, char *ext );说明分解路径,把你的完整路径给分割开来,就是一个对字符串进行分割的
2014-11-27 20:04:44 6204 4
原创 Linux 最最常用命令使用示例(10个并配图)
之前一个朋友想要我教下Linux的使用,于是我按照命令的关联性做了一个入门级的教程如下:(如果想下载 word 文件保存,请 下载)----------------------------------- 我是调皮的上下分割线 -----------------------------------------1. 打开终端的方法(我演示的系统是Linux Mint) A. 点
2014-11-24 13:04:22 11832
原创 arm平台编译动态库报 relocation R_ARM_MOVW_ABS_NC 错误解决
编译一个能在 arm 平台上用的动态库,结果报错如下:relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC./obj/xxx.o: could not read symbols: Bad valuecollect2: error: ld returned 1 exit status其实错误信息已经给出解决办法了,加
2014-11-21 18:28:00 24355 4
转载 Linux C语言 格式化输出时间函数 strftime()
今天在做根据日期时间+ID作为文件名存储时,用到了格式化时间的要求,如果单纯用struct tm这个结构体中获取到的信息来拼接字符串的话,如果是个位数,则不会在前面补0,比如我需要的是20130306,如果采用snprintf拼接字符串时获取到的时201336,这与我之前设想的有所不同,记得以前曾经自己实现过一个格式化的函数,但是比较繁琐。于是google了一下竟然还真有一个这样的函数:strft
2014-11-13 09:28:14 9055 1
转载 Linux Shell 1>/dev/null 2>&1 含义
shell中可能经常能看到:echo log > /dev/null 2>&1命令的结果可以通过%>的形式来定义输出/dev/null :代表空设备文件> :代表重定向到哪里,例如:echo "123" > /home/123.txt1 :表示stdout标准输出,系统默认值是1,所以">/dev/null"等同于"1>/dev/null"2 :表示s
2014-11-12 15:42:26 1099
原创 Linux下C语言计算文件的md5值(长度32)
google了好久都没有找到合适的,其实我只需要一个函数,能计算文件的 md5 值就好,后来找到了 md5.h 和 md5.c 的源文件,仿照别人的封装了个函数(他那个有问题,和 md5sum 计算出来的都不一样)。废话少说,直接贴代码: (再废一句话,如果只想计算字符串的md5值,把字符串传给 MD5Update 函数一次就好)#include "md5.h"#include
2014-11-07 18:56:51 24242 22
Source Insight 3.X utf8 支持插件.zip
2015-09-14
curl-7.41.0.tar.bz2
2015-04-25
libiconv-1.14.tar.gz
2015-04-25
libini-1.1.10-2.tgz
2015-04-25
jsoncpp-src-0.5.0.tar.gz
2015-04-25
ghostpdl-9.16
2015-04-25
json-c lib
2015-04-25
curl-7.42.0.tar.bz2
2015-04-25
cconv-0.6.2.tar.gz
2015-04-25
Linux内核编程.pdf
2015-02-27
unix network programming(Volume 1 • Third Edition).pdf
2014-11-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人