I am working on a project called monitoring system using inotify
I saw some sample code online but I didn't understand this line. inotify_event
makes you notified about the event/changes in file/directory. But what *event
does and why is &buffer[i] used? Could you please explain it to me?
Here is the link to the sample code: https://www.thegeekstuff.com/2010/04/inotify-c-program-example/
struct inotify_event *event=(struct inotify_event*)&buffer[i];