readline AWOL?

Roger Oberholtzer roger at opq.se
Tue Nov 18 23:17:50 PST 2008


On Tue, 2008-11-18 at 20:15 +0000, Jorge Almeida wrote:
> On Tue, 18 Nov 2008, Dog Walker wrote:
> 
> >
> > I would try doing what it says, i.e., declaring the readline function
> > before you use it:
> >
> >        char *
> >        readline (const char *prompt);
> >        int main(int argc, char *argv[])
> >        {
> >                      char *lp;
> >                      lp=readline(MAINPROMPT);
> >                      return 0;
> >        }
> >
> I think what it says is just the standard way of telling us how the
> function is used. For example, "man open" says:
>  	NAME
>  	       open, creat - open and possibly create a file or device
> 
>  	SYNOPSIS
>  	       #include <sys/types.h>
>  	       #include <sys/stat.h>
>  	       #include <fcntl.h>
> 
>  	       int open(const char *pathname, int flags);
>  	       int open(const char *pathname, int flags, mode_t mode);
> 
> But you don't copy "int open(const char *pathname, int flags);" to your
> program, the "include" does it.

Exactly.

> Anyway, I tried it and it's just the same. I believe the FC5 may not be
> completely sane, but it works on Gentoo and that's enough.

I have always felt that about FC (he ducks quickly - not spilling a drop
of coffee).

-- 
Roger Oberholtzer

OPQ Systems / Ramböll RST

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden

Office: Int +46 8-615 60 20
Mobile: Int +46 70-815 1696

--

"On two occasions I have been asked (by members of Parliament!),
'Pray, Mr. Babbage, if you put into the machine wrong figures,
will the right answers come out?' I am not able rightly to apprehend
the kind of confusion of ideas that could provoke such a question.
  - Charles Babbage 1791-1871)
    English computer pioneer, philosopher

And remember:

It is RSofT and there is always something under construction. 
It is like talking about large city with all constructions finished. 
Not impossible, but very unlikely.




More information about the Linux-users mailing list