zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: dc_strdup                                                        *
 *                                                                            *
 * Purpose: copies string into configuration cache shared memory              *
 *                                                                            *
 ******************************************************************************/
dc_strdup

Purpose: copies string into configuration cache shared memory
dc_strdup Purpose : copies string into configuration cache shared memory
static char	*dc_strdup(const char *source)
{
	char	*dst;
	size_t	len;
	len = strlen(source) + 1;
	dst = (char *)__config_mem_malloc_func(NULL, len);
	memcpy(dst, source, len);
	return dst;
}
static char * dc_strdup ( const char * source ) { char * dst ; size_t len ; len = strlen ( source ) + 1 ; dst = ( char * ) __config_mem_malloc_func ( NULL , len ) ; memcpy ( dst , source , len ) ; return dst ; }
Function: dc_strdup                                                        
                                                                            
 Purpose: copies string into configuration cache shared memory
Function : dc_strdup Purpose : copies string into configuration cache shared memory