使用ctags获取指定文件中的函数信息:
robin@ubuntu:/media/2ndDisk/workspace/binutils-2.23.2$ ctags -x --c-types=f tree-1.6.0/tree.c
Ftype function 1110 tree-1.6.0/tree.c char Ftype(mode_t mode)
alnumsort function 770 tree-1.6.0/tree.c int alnumsort(struct _info **a, struct _info **b)
ctimesort function 810 tree-1.6.0/tree.c int ctimesort(struct _info **a, struct _info **b)
do_date function 1024 tree-1.6.0/tree.c char *do_date(time_t t)
fillinfo function 1124 tree-1.6.0/tree.c char *fillinfo(char *buf, struct _info *ent)
free_dir function 843 tree-1.6.0/tree.c void free_dir(struct _info **d)
getfulltree function 685 tree-1.6.0/tree.c struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err)
gnu_getcwd function 855 tree-1.6.0/tree.c char *gnu_getcwd()
indent function 958 tree-1.6.0/tree.c void indent(int maxlevel)
main function 70 tree-1.6.0/tree.c int main(int argc, char **argv)
mtimesort function 797 tree-1.6.0/tree.c int mtimesort(struct _info **a, struct _info **b)
patmatch function 879 tree-1.6.0/tree.c int patmatch(char *buf, char *pat)
printit function 1045 tree-1.6.0/tree.c void printit(char *s)
prot function 986 tree-1.6.0/tree.c char *prot(long m)
psize function 1097 tree-1.6.0/tree.c int psize(char *buf, off_t size)
read_dir function 577 tree-1.6.0/tree.c struct _info **read_dir(char *dir, int *n)
reversealnumsort function 788 tree-1.6.0/tree.c int reversealnumsort(struct _info **a, struct _info **b)
usage function 514 tree-1.6.0/tree.c void usage(int n)
versort function 779 tree-1.6.0/tree.c int versort(struct _info **a, struct _info **b)
xmalloc function 823 tree-1.6.0/tree.c void *xmalloc (size_t size)
xrealloc function 833 tree-1.6.0/tree.c void *xrealloc (void *ptr, size_t size)