G_ARRAY_LENGTH for glib.h?



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]