g_ptr_array bsearch & etc



Can the following be added to g_ptr_array?

gboolean
g_ptr_array_bsearch (GPtrArray *     array,
		     guint *         ret,
		     gconstpointer   sample,
		     GCompareFunc    compare_func);
void
g_ptr_array_add_index (GPtrArray  *array,
		       guint       index,
		       gpointer    data);
void
g_ptr_array_add_sorted (GPtrArray *   array,
			gpointer      data,
			GCompareFunc  compare_func);

The implementation and test suite is attached.

-- 
Get self-realization at <http://sahajayoga.org> ... <http://why-compete.org> ?
  Victory to the Divine Mother!!




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]