|
libUPnP 1.18.5
|
#include "config.h"#include "upnp.h"#include "upnputil.h"#include <string.h>#include "posix_overwrites.h"
Functions | |
| void | linecopy (char dest[LINE_SIZE], const char *src) |
| Copy no of bytes spcified by the LINE_SIZE constant, from the source buffer. Null terminate the destination buffer. | |
| void | namecopy (char dest[NAME_SIZE], const char *src) |
| Copy no of bytes spcified by the NAME_SIZE constant, from the source buffer. Null terminate the destination buffer. | |
| void | linecopylen (char dest[LINE_SIZE], const char *src, size_t srclen) |
| Determine if the srclen passed in paramter is less than the permitted LINE_SIZE. If it is use the passed parameter, if not use the permitted LINE_SIZE as the length parameter. | |
Purpose: This file contains functions for copying strings based on different options.
| void linecopy | ( | char | dest[LINE_SIZE], |
| const char * | src ) |
Copy no of bytes spcified by the LINE_SIZE constant, from the source buffer. Null terminate the destination buffer.
| [out] | dest | output buffer. |
| [in] | src | input buffer. |
| void linecopylen | ( | char | dest[LINE_SIZE], |
| const char * | src, | ||
| size_t | srclen ) |
Determine if the srclen passed in paramter is less than the permitted LINE_SIZE. If it is use the passed parameter, if not use the permitted LINE_SIZE as the length parameter.
Copy no of bytes spcified by the LINE_SIZE constant, from the source buffer. Null terminate the destination buffer.
| [out] | dest | output buffer. |
| [in] | src | input buffer. |
| [in] | srclen | bytes to be copied. |
| void namecopy | ( | char | dest[NAME_SIZE], |
| const char * | src ) |
Copy no of bytes spcified by the NAME_SIZE constant, from the source buffer. Null terminate the destination buffer.
| [out] | dest | output buffer. |
| [in] | src | input buffer. |
Referenced by check_soapaction_hdr(), and get_dev_service().