I want to implement tab completion to my program, similar to a unix shell's.
Like if the user types comp and hits <tab>, completion would appear (suppose there's a file named "completion" in the current directory).
Someone suggested using the readline library, but it seems too difficult to use that.
Is there another way?
Or is there any source available that does a similar thing using readline, so I can understand better off code examples?
I'm using Linux and GCC 3.4.6