Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
array.h
Go to the documentation of this file.
1
11#ifndef __WSUTIL_ARRAY_H__
12#define __WSUTIL_ARRAY_H__
13
14#include <stdlib.h>
15#include <glib.h>
16
18#define array_length(x) (sizeof (x) / sizeof (x)[0])
19
21#ifndef g_ptr_array_len
22#define g_ptr_array_len(a) ((a) ? (a)->len : 0)
23#endif
24
25#endif /* __WSUTIL_ARRAY_H__ */