CoreFW  Diff

Differences From Artifact [c532ff05d3]:

To Artifact [70b7e88f0b]:


34
35
36
37
38
39
40
41

42
43
44
45






46




47



48
49
50
34
35
36
37
38
39
40

41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

57
58
59
60
61
62







-
+




+
+
+
+
+
+

+
+
+
+
-
+
+
+



main()
{
	CFWString *s[3];
	CFWArray *a;
	size_t i;

	s[0] = cfw_new(cfw_string, "Hallo");
	s[1] = cfw_new(cfw_string, "Welt");
	s[1] = cfw_new(cfw_string, " Welt");
	s[2] = cfw_new(cfw_string, "!");

	a = cfw_new(cfw_array, s[0], s[1], s[2], NULL);

	cfw_unref(s[0]);
	cfw_unref(s[1]);
	cfw_unref(s[2]);

	s[0] = cfw_new(cfw_string, NULL);

	for (i = 0; i < cfw_array_size(a); i++)
		cfw_string_append(s[0], cfw_array_get(a, i));

	cfw_unref(a);

		puts(cfw_string_c(cfw_array_get(a, i)));
	puts(cfw_string_c(s[0]));

	cfw_unref(s[0]);

	return 0;
}