LTSVのログビューワーltsview (http://d.hatena.ne.jp/naoya/20130207/1360229220) のC言語版を作りました。 ソースコードはGithubにおいてあります。 https://github.com/DQNEO/c-ltsview やる前は難しそうだと思っていたのですが、書いてみたら意外と簡単で、100行ほどでできました。 こんな感じです。 #include <stdio.h> #include <string.h> #include <stdlib.h> #define BUF_MAX 10240 #define KEYS_MAX 100 struct item { char *key; char *value; }; void parse_item(struct item *item, char *key_value); int in_