![]() |
Wireshark
4.3.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Macros | |
#define | array_length(x) (sizeof (x) / sizeof (x)[0]) |
#define | g_ptr_array_len(a) ((a) ? (a)->len : 0) |
Utility functions/macros for handling arrays, C and/or glib.
Wireshark - Network traffic analyzer By Gerald Combs geral Copyright 1998 Gerald Combs d@wi resha rk.o rg
SPDX-License-Identifier: GPL-2.0-or-later
#define array_length | ( | x | ) | (sizeof (x) / sizeof (x)[0]) |
Useful when you have an array whose size is known at compile-time.
#define g_ptr_array_len | ( | a | ) | ((a) ? (a)->len : 0) |
glib doesn't have g_ptr_array_len, of all things!