diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 1995-05-09 19:02:06 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 1995-05-09 19:02:06 +0000 |
| commit | 7cd23434fe4cb60386f172416370876c6def6408 (patch) | |
| tree | 3824a53da4fe2907a82c2e56c64ecc75e069be0b /usr.bin/find/function.c | |
| parent | 2b50c84ac1cef8d31224642d605c8744bcf9ebac (diff) | |
Notes
Diffstat (limited to 'usr.bin/find/function.c')
| -rw-r--r-- | usr.bin/find/function.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index f5376766322c..52e0f4378450 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -794,6 +794,30 @@ c_print() } /* + * -print0 functions -- + * + * Always true, causes the current pathame to be written to + * standard output followed by a NUL character + */ +int +f_print0(plan, entry) + PLAN *plan; + FTSENT *entry; +{ + fputs(entry->fts_path, stdout); + fputc('\0', stdout); + return (1); +} + +PLAN * +c_print0() +{ + isoutput = 1; + + return (palloc(N_PRINT0, f_print0)); +} + +/* * -prune functions -- * * Prune a portion of the hierarchy. |
