#include <glib.h>

void main() {
	gchar **result;
	result = g_regex_split_simple ("\\s", "ab c", 0, 0);
	if (result != NULL) {
		g_printf ("1: %d\n", g_strv_length(result));
		g_strfreev (result);
	}
	result = g_regex_split_simple ("\\s*", "ab c", 0, 0);
	if (result != NULL) {
		g_printf ("2: %d\n", g_strv_length(result));
		g_strfreev (result);
	}
}
