Add function int constmap_init_char(cm,s,len,flagcolon,flagchar)

This is similar to constmap_init function with added flagchar option which let
you set the character instead of default ':' character.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>