G_ARRAY_LENGTH for glib.h?
- From: Darin Adler <darin bentspoon com>
- To: Gtk Developers <gtk-devel-list redhat com>
- Subject: G_ARRAY_LENGTH for glib.h?
- Date: Tue, 18 Jan 2000 16:51:53 -0800
Any thoughts about the possibility of adding this macro to glib.h?
#define G_ARRAY_LENGTH(array) (sizeof(array) / sizeof((array)[0]))
I use this all the time and thought it might be a good candidate.
-- Darin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]