Code

wreadln: call g_list_length() only once