BBCode implementation in C.