First of all, this is just a guess from a C newbie. So dont be angry I'm missing something obvious.
IIRC the codes are the roff/troff formatting commands. So can we use something like (works on a solaris box):
nroff -man < ${file_name}
On linux, /etc/man.config (I think) can give you some pointers about the exact command...
Dont know you are going to implement this in C++. Somthing like system(nroff...) ?!
HTH.
|