tsdecrypt中所带的libfunc模块
libfuncs包含了常用的功能模块,你在写C程序的时候,直接调用libfuncs,将会方便快捷,事倍功半。
粗略看了下,里面包含了:
async_resolve_host 异步DNS查询
Circular buffer 循环缓冲
http_response HTTP响应处理
UX IO
struct LIST 双向链表
LOG functions 日志 定时器
Queue handling 线程池
http://georgi.unixsol.org/programs/libfuncs/
使用方法:
Using it
========
Clone or download libfuncs in a directory in your source tree and
look at the example Makefile bellow:
---
FUNCS_DIR = libfuncs
FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a
all: prog
prog_OBJS = main.o $(FUNCS_LIB)
$(FUNCS_LIB):
$(MAKE) -s -C $(FUNCS_DIR)
prog: $(prog_OBJS)
$(CC) $(CFLAGS) $(prog_OBJS) -o prog
---
In every C file that you need to use it, add
#include "libfuncs/libfuncs.h"