Example #1
0
void copy(char *const name1, char *const name2, const int err_info) {
	char *name1_copy = copy_string(name1);
	int err = copy_description(&global_hospital()->patients, name1_copy, name2);
	if (err == -1) {
		ignore();
		free(name1_copy);
	} else {
		ok();
		if (err == 1)
			free(name1_copy);
	}
	print_err_info(err_info);
}
Example #2
0
CFStringRef copy_debug_description(CFTypeRef cf)
{
	return copy_description(cf, NULL);
}