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

msg_accept_encoding_t* msg_accept_encoding_format ( su_home_t home,
char const *  fmt,
  ... 
)

Make a Accept-Encoding header from formatting result.

The function msg_accept_encoding_format() makes a new Accept-Encoding header object using snprintf-formatted result as its value. The function first prints the arguments according to the format fmt specified. Then it allocates a new header structure, and uses the formatting result as the header value.

Parameters:
home memory home used to allocate new header structure.
fmt string used as a printf()-style format
... argument list for format
Note:
This function may be implemented as a macro calling msg_header_format().
Returns:
The function msg_accept_encoding_format() returns a pointer to newly makes header structure, or NULL upon an error.


Generated by  Doxygen 1.6.0   Back to index