#include <stdsoap2.h>
#include <stdlib.h>
Go to the source code of this file.
|
#define | SOAP_CALLOC(soap, nmemb, size) memset(soap_malloc((soap),(nmemb)*(size)),0,(nmemb)*(size)); |
|
#define | SOAP_STRCPY(soap, d, s) |
|
#define SOAP_CALLOC |
( |
|
soap, |
|
|
|
nmemb, |
|
|
|
size |
|
) |
| memset(soap_malloc((soap),(nmemb)*(size)),0,(nmemb)*(size)); |
#define SOAP_STRCPY |
( |
|
soap, |
|
|
|
d, |
|
|
|
s |
|
) |
| |
Value:do { \
char *_ss = (s); \
int _rc; \
\
if (!_ss) \
(d) = NULL; \
else { \
_rc = strlen(_ss) + 1; \
(d) = soap_malloc((
soap),_rc); \
strncpy((d),_ss,_rc); \
} \
} while (0);
Definition at line 28 of file util.h.