摘要:
#define定义“可读”的常量以及一些宏语句的任务,而typedef则常用来定义关键字、冗长的类型的别名。 阅读全文
摘要:
说明:涉及到的头文件(.h),目录默认都是基于 /usr/include/ 目录.1.在"/sys/types.h"中,有下列内容:1 #include 2 #ifndef __pid_t_defined3 100 typedef __pid_t pid_t;4 101 # define __pid... 阅读全文
摘要:
终于搞定了,之前弄那么两天配置,都不成功.需要软件:ctagstaglist1,ctags. 1)说明: 这个我就不演示了,我的RedHat5.5本身就有ctags. 2)验证ctags是否已经安装: 在终端上输入ctags --version后,会出现如下所示信息(表示安装过):E... 阅读全文
摘要:
在 ~/.vimrc (没有该文件可以手动创建)中输入map :r !date实现在 '一般模式'状态点击 F4时,自动在vim中打印当前时间.不过打印格式不知道...哪位知道可以告诉我...谢... 阅读全文
摘要:
POSIX.1 将 read函数的原型做了修改,经典的定义为1 int read(int filedes, char *buf, unsigned nbytes);修改为1 ssize_t read(int filedes, void *buf, size_t nbytes);主要从以下几个方面考虑... 阅读全文
摘要:
概述: 想装 ctags,装不上.看到老外有篇日志,是在vi 7.2版本上运行.怕是vi版本的原因,于是想升级,网上升级的方法写得少,有的写的太无语了,只有他自己看得懂.这里,简单说下.搞半天了,终于ok.更新vim步骤:1.下载压缩文件: 在vim的官网上下载所需的版本,这里选择vim-7.4... 阅读全文
摘要:
Ctags with vi 阅读全文
摘要:
//comment1,'ctrl+v' to VISUAL BLOCK mode.2,'j' or 'k' to select/deselect lines.3,'I' to INSERT mode.4,'#' and 'ESC'.//uncommentstep '1','2' are the sa... 阅读全文
摘要:
solution: 1)swap to another tty, kill processes using 'sudo kill -9 pid' 2)'Recover' the 'warn-opennig' file, backup, and delete the '.wap' hidden f... 阅读全文
摘要:
commons: all of them could use regular-expression to match the result. differences: 1)grep: search for files with patterns. 2)awk: any... 阅读全文