int main() { GString *screen_text = NULL; gchar *screen_position, /* Host the last position or NULL if isn't found */ *last_screen_position, /* Host the last real position */ *percent_symbol; int i; for(i=0; i <4; i++) { screen_text = load_text(']'); last_screen_position = 0; while ((screen_position = strstr(screen_text->str, "Booting process at ")) != NULL) last_screen_position = screen_position; } g_print("%s\n", "program finished"); return 0; }