![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
about linux
文章平均质量分 59
Artorious
编码,网络,linux
展开
-
grep&makefile tips
grep -r 可以递归查询子目录。makefile中=和:=的区别:1.= a=00 b=$(a) a=01 最后b的值是012.:= a=00 b:=$(a) a=01 最后b的值是00显然,如果定义的时候值本身就是变量,=会向后延伸,而:=不会,所以如果不需要向后延伸就一定要用:=,防止不可预测的错误出现。PS:找一个原创 2011-06-15 16:12:00 · 957 阅读 · 1 评论 -
ubuntu文件夹
/bin 二进制可执行命令 /dev 设备文件(硬盘/光驱等) /etc 系统管理和配置文件 /etc/rc.d 启动的配置文件和脚本 /home 用户主目录,下面会有以登录用户名作为文件夹名的各文件夹 /lib 标准程序设计库又叫动态链接共享库,作用类似windows里的.dll文件 /sbin 系统管理命令,这里存放的是系统管理员使用的管理程序 /tmp 公用的临时文件存储点转载 2011-06-18 13:24:00 · 434 阅读 · 0 评论 -
栈实现四则运算
#include #include //header file of isdigit#define MAXSIZE 100//the max length of the expresionchar ch[7] = {'+','-','*','/','(',')','#'};i原创 2011-07-15 10:05:49 · 561 阅读 · 0 评论 -
C语言+正则初步
#include #include #include int check(const char *buf){ int status = 0, i = 0; int cflags = REG_EXTENDED; const size_t nmatch = 1; regmatch_t pmatch[1]; regex_t reg原创 2012-10-05 00:43:13 · 688 阅读 · 0 评论 -
线程的创建和退出
linux下用C开发多线程程序,Linux系统下的多线程遵循POSIX线程接口,称为pthread。#include int pthread_create(pthread_t *restrict tidp,const pthread_attr_t *restrict attr,void *(*start_rtn)(void), void *restrict arg);转载 2012-10-17 00:54:20 · 604 阅读 · 0 评论 -
IPV4的V6表示法
为在混合网络环境下,确保IPV4和IPV6节点间的兼容性,IPv6 地址提供了组合了冒号与带点表示法,可将 IPv4 地址嵌入到 IPv6 地址中。对最左边 96 个位指定十六进制值,对最右边 32 个位指定十进制值,来指示嵌入的 IPv4 地址。这两种类型的 IPv6 地址使用此可选格式:通过 IPv4 映射的 IPv6 地址 此类型的地址用于将 IPv4 节点表示为 I原创 2013-06-06 01:51:13 · 1751 阅读 · 0 评论