Name
XtNumber — determine the number of elements in a fixed-size array.
Synopsis
Cardinal XtNumber(array)
array;
Arguments
arraySpecifies a fixed-size array.
Description
XtNumber returns the number of elements in the specified argument list, resource list, or other fixed-size array. It works only for objects whose total size is known at compile time.
It is a macro defined in <X11/Xt Intrinsic.h> as:
#define XtNumber(arr) ((Cardinal) (sizeof(arr) / sizeof(arr[0])))