# util functions of tcpmon

## Functions
axis2_char_t * | tcpmon_util_format_as_xml (const axutil_env_t *env, axis2_char_t *data, int format)
char * | str_replace (char *str, const char *search, const char *replace)
axis2_char_t * | tcpmon_util_strcat (axis2_char_t *dest, axis2_char_t *source, int *buff_size, const axutil_env_t *env)
axis2_char_t * | tcpmon_util_read_current_stream (const axutil_env_t *env, axutil_stream_t *stream, int *stream_size, axis2_char_t **header, axis2_char_t **data)
char * | tcpmon_util_str_replace (const axutil_env_t *env, char *str, const char *search, const char *replace)
int | tcpmon_util_write_to_file (char *filename, char *buffer)

## Function Documentation

axis2_char_t* tcpmon_util_format_as_xml | ( | const axutil_env_t * | env,
|  | axis2_char_t * | data,
|  | int | format |
| ) |  |  |

format the data as xml

Parameters:

  | env | pointer to environment struct. MUST NOT be NULL.
  | data | to be formatted