Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

issize_t msg_generic_e ( char  b[],
isize_t  bsiz,
msg_header_t const *  h,
int  flags 

Encode a generic header.

The function msg_generic_e encodes a generic header.

Definition at line 81 of file msg_generic.c.

References msg_generic_s::g_string.

  msg_generic_t const *g = h->sh_generic;
  size_t n = strlen(g->g_string);

  if (bsiz > n)
    strcpy(b, g->g_string);

  return (issize_t)n;

Generated by  Doxygen 1.6.0   Back to index