Files
Nim/lib
Archar Gelod 2a046e6487 better examples for std/inotify (#23415)
Previous example wouldn't run unless `std/posix` was imported and it
wasn't mentioned anywhere in the docs.

Other changes in the example:
- replaced magic number with constant `MaxWatches` .
- changed seq buffer to array, because length is already constant +
pointer is a bit nicer: `addr seq[0]` vs `addr arr`
- added example for getting a `cstring` name value from `InotifyEvent`
struct with explicit cast.
- added a bit more description to `inotify_init1` (copied from `man
inotify(7)`)

---------

Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
2024-08-14 22:35:40 +08:00
..
2017-02-20 17:24:19 +02:00
2024-07-26 20:45:52 +02:00
2024-07-26 20:45:52 +02:00
2024-08-11 10:35:09 +08:00
2013-03-16 23:53:07 +01:00
2021-06-03 14:00:53 +02:00