Mistři v programování na #hovnokod

C/C++ #44

void DictionaryEnumeratorFunction(char *val, void *tag)
{
	DictionaryEnumeratorData ***data;
	data = (DictionaryEnumeratorData***) tag;

	(**data) = malloc(sizeof(DictionaryEnumeratorData));
	(**data)->val = malloc(0); /* O_o */
	strcpy((**data)->val, val);
	(**data)->next = NULL;
	*data = &((**data)->next);
}

Anonymous,