On Tue, 2010-08-31 at 10:13 +0200, Daniel Wagner wrote:
> Maybe a macro like
> 
> #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) 

GLib has this already:

#define G_N_ELEMENTS(arr)   (sizeof (arr) / sizeof ((arr)[0]))

Ross
-- 
Intel Open Source Technology Centre
http://oss.intel.com/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to