Dear Kyungwan Han,<br><br>I think it would be better is we are creating any re-usable functions, it should be kept in lib.c.<br><br>And if you are creating functions, which are useful and re-usable for creating network related any binaries, then we can go ahead with<br>
separate "network-functions.c" under "lib" directory.<br><br>This will make life easy :)<br><br>Just adding my 2 cents :)<br><br>Regards,<br>Gaurang Shastri<br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 1:01 AM, Kyungwan Han <span dir="ltr"><<a href="mailto:asura321@gmail.com" target="_blank">asura321@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,</div><div> </div><div> </div><div>when I make new commands, sometimes I do not add functions to lib.c but make new library,</div>
<div> </div><div>because some functions can be categorized according to usage such as network or file system,</div>

<div> </div><div>and it makes <span lang="en">maintenance easier.</span></div><div> </div><div>In my case, I made lib/inetutil.c library for ping, ping6, netstat, ifconfig and so on.</div><div>(Now only ifconfig is contributed, but I'm ready to contribute other network features.)</div>


<div> </div><div>But making new library is likely to have an impact on toybox infra or structure.</div><div> </div><div>so I'd like to know which is better making new library or adding functions to lib.c?</div><div> </div>


<div> </div><div>Thanks.</div><span class="HOEnZb"><font color="#888888"><div> </div><div>Kyungwan Han.</div><div> </div><div> </div><div> </div></font></span></div>
<br>_______________________________________________<br>
Toybox mailing list<br>
<a href="mailto:Toybox@lists.landley.net">Toybox@lists.landley.net</a><br>
<a href="http://lists.landley.net/listinfo.cgi/toybox-landley.net" target="_blank">http://lists.landley.net/listinfo.cgi/toybox-landley.net</a><br>
<br></blockquote></div><br>