Originally Posted by ajaykr
My intention is to write a C program which behaves exactly as "more" command does. Its not a homework for me, rather I came accross this while enhancing a product command, it can only be solved by adding this implementation.
you can look at the source codes to get some inspiration. download the link i give, unzip and inside there's a more.c file. not sure is it what you want..but at least it can get you started. otherwise, searching google code search may produce more results.