[Toybox] realpath implementation
Andre Renaud
andre at bluewatersys.com
Tue Feb 14 12:16:26 PST 2012
Hi Elie,
> Just a question/suggestion, now you're using your own
>
> char buffer[PATH_MAX];
>
> to hold your result, why not make use of the globally existing char
> toybuff[4096] (see toys.h/main.c), most other tools make use of this
> buffer for similar needs.
Thanks for that - I wasn't aware of the toybuf scratch space.
Attached is the (trivially) updated implementation.
Regards,
Andre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: realpath.diff
Type: text/x-patch
Size: 767 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20120215/65f1c06e/attachment-0007.bin>
More information about the Toybox
mailing list