getopt() getopt()函数的作用:解析命令行参数。 当命令行中的元素以" "开头,那么该元素(argv[i])就是参数选项,其后的字符串就是参数。参数选项列表通过 optstring 指定。 测试代码如下: The variable optind is the index of the Read More
1 存储器 存储器(memory)主要分为两类,易失性存储器和非易失性存储器。 1.1 RAM 易失性存储器的代表就是RAM(Random Access Memory),RAM又分为SRAM(Static Random Access Memory)和DRAM(Dynamic Random Acces Read More
demo4示例 链接第三方动态库,静态库。 使用cc_import链接外部库。原理是通过cc_import规则导入第三方库,然后cc_binary再依赖cc_import规则的target,也即依赖第三方库。 demo4目录树 ├── link │ ├── BUILD │ ├── include │ Read More