Filewatcher built in C