So where is the prototype for add_history coming from in Inetutls?
   Should not we refer to history.h and/or -lhistory too as just as we
   do for readline.h and -lreadline?

C never required that you need to specify a prototype for a function.
Try enabling warnings, and you will see.

   Secondly, is it possible for add_history to be in libreadline.so
   instead of libhistory.so on GNU systems? 

It might, but there is no guarantee.

   Or in other terms why should we check for add_history in both
   libreadline _and_ libhistory?

Because add_history is can be part of another library.



_______________________________________________
bug-inetutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-inetutils

Reply via email to