66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
size_t i;
pool = cfw_new(cfw_refpool);
array = cfw_create(cfw_array,
cfw_create(cfw_string, "Hallo"),
cfw_create(cfw_string, " Welt"),
cfw_create(cfw_string, "!"), NULL);
str = cfw_new(cfw_string, NULL);
for (i = 0; i < cfw_array_size(array); i++)
cfw_string_append(str, cfw_array_get(array, i));
cfw_unref(pool);
puts(cfw_string_c(str));
|
|
|
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
size_t i;
pool = cfw_new(cfw_refpool);
array = cfw_create(cfw_array,
cfw_create(cfw_string, "Hallo"),
cfw_create(cfw_string, " Welt"),
cfw_create(cfw_string, "!"), (void*)NULL);
str = cfw_new(cfw_string, (void*)NULL);
for (i = 0; i < cfw_array_size(array); i++)
cfw_string_append(str, cfw_array_get(array, i));
cfw_unref(pool);
puts(cfw_string_c(str));
|