The following structure is defined in sys/inotify.h ( inotify.h ):
struct inotify_event { int wd; uint32_t mask; uint32_t cookie; uint32_t len; char name __flexarr; };
I can not find any definitions for __flexarr in code. Where would I look for him?
In an unrelated project, I found #define __flexarr [1] , which I assume does something similar, but this definition does not make much sense to me (completely unfamiliar with C).
The only thing I know is that you can store strings of various lengths in it, but I absolutely lack an understanding of how this works.
Anyone want to explain? Thanks.
source share