c code to process dyndoc directly as char*