diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-01-14 16:38:08 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-02-05 19:02:25 -0500 |
commit | a6f94c132c425bbab543e98fcd19f4ff7519d1b7 (patch) | |
tree | 215135837c0335946b70593877ec5411ba8e6c17 /bftw.h | |
parent | 9f1863d45fe596e258596a4b4cc9a4064bcb11d3 (diff) | |
download | bfs-a6f94c132c425bbab543e98fcd19f4ff7519d1b7.tar.xz |
Implement -printf/-fprintf
Based on a patch by Fangrui Song <i@maskray.me>.
Closes #16.
Diffstat (limited to 'bftw.h')
-rw-r--r-- | bftw.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -64,6 +64,8 @@ struct BFTW { /** The string offset of the filename. */ size_t nameoff; + /** The root path passed to bftw(). */ + const char *root; /** The depth of this file in the traversal. */ size_t depth; /** Which visit this is. */ |