11 2020 档案
摘要:参数 --preserve或-p:除复制文件的内容外,还把修改时间和访问权限也复制到新文件中。
阅读全文
摘要:参数 -maxdepth :指定遍历搜索的最大深度。最大目录层级 -mindepth: 指定开始遍历搜索的最小深度。最小目录层级
阅读全文
摘要:推荐一个查看linux内核代码的网站,特别的好用 可以用来查看不同版本的内核代码 https://elixir.bootlin.com/linux/latest/source
阅读全文
摘要:#是在宏定义中将参数进行字符串化的预处理特征,例如: #include <stdio.h> #define P(EXP) printf("%s %d\n", #EXP, EXP) int main() { int a=123; P(a); return 0; } 预编译展开后的部分代码 #defin
阅读全文
摘要:可以使用宏定义方式对结构体成员进行赋值。 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct{ struct { int n1; int n2; } data; int n3; }n_t; #define
阅读全文
摘要:函数定义 #include <sys/types.h> #include <sys/socket.h> #include <ifaddrs.h> int getifaddrs(struct ifaddrs **ifap); 参数说明 struct ifaddrs { struct ifaddrs *
阅读全文
摘要:函数定义 const char * inet_ntop(int af, const void * restrict src, char * restrict dst, socklen_t size); int inet_pton(int af, const char * restrict src,
阅读全文
浙公网安备 33010602011771号