2007-08-07から1日間の記事一覧

GNU catを読む - next_line_num()編

GCC

昨日、catのソースを読んでいて謎だったnext_line_num()の処理を解析してみた。 実際の動作を確認する。 cat -nで行番号表示が出来る。 % cat -n next_line_num.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 #define LINE_COUNTER_BUF_LEN 20 5 static char line_buf[LINE</stdlib.h></stdio.h>…

Hacking Vim欲しい!!

Vim

Vimの本ってなかなか無いんですよね・・・世界中で使われてるグレイトなエディタなのに〜なぜだぁぁぁ!!と思ってたら、でた、でた、でたぁぁぁ〜Vim7本!!(洋書だけど)Hacking Vim: A Cookbook to Get the Most Out of the Latest Vim Editor作者: Kim Schulz…