Add code to parse a debug category string

Use strdup to be able to use strtok on the category string and add
a test case. Also safe some more information to be able to use color
in the print statement.
6 files changed
tree: 2df1097eb9b7966602e59f17a89a0e87b4db0b89
  1. include/
  2. src/
  3. tests/
  4. configure.in
  5. Makefile.am