add_data_to_buffer
add_data_to_buffer((struct prof_buf *)data, str, strlen(str));
add_data_to_buffer(&prof_buf, "", 1); /* append nul */