Hello,

when I make new commands, sometimes I do not add functions to lib.c but
make new library,

because some functions can be categorized according to usage such as
network or file system,

and it makes maintenance easier.

In my case, I made lib/inetutil.c library for ping, ping6, netstat,
ifconfig and so on.
(Now only ifconfig is contributed, but I'm ready to contribute other
network features.)

But making new library is likely to have an impact on toybox infra or
structure.

so I'd like to know which is better making new library or adding functions
to lib.c?


Thanks.

Kyungwan Han.
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to