[Toybox] realpath implementation

Elie De Brauwer eliedebrauwer at gmail.com
Mon Feb 13 23:16:24 PST 2012


On 02/14/2012 03:14 AM, Andre Renaud wrote:
> Hi all,
>
> Attached is a trivial implementation of the 'realpath' program.
>
> Regards,
> Andre
>

Hi Andre,

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.

my 2 cents
E.
-- 
Elie De Brauwer


 1329203784.0


More information about the Toybox mailing list