readlink.c: support the -n option
commit4126cfc55c61088318c8e09824b4a0a3d567e1a5
authorKyle J. McKay <mackyle@gmail.com>
Sun, 22 Aug 2021 20:12:10 +0000 (22 13:12 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 22 Aug 2021 20:12:10 +0000 (22 13:12 -0700)
treef404bf303bdb835d5eede7352bbf645215d22834
parentb72ad077c848b26b81c3bf257829414cb2af0690
readlink.c: support the -n option

If there are two arguments instead of one and the first
argument is exactly '-n' then omit the trailing '\n' from
a successful result.

The '-n' option seems to be pretty much the one and only
universally supported option.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
src/readlink.c