MORE/PAGING routine needed ...

Roy M. Silvernail roy%cybrspc at cs.umn.edu
Mon Nov 12 05:11:36 AEST 1990


gwyn at smoke.brl.mil (Doug Gwyn) writes:

> In article <1244 at eci.UUCP> lll at eci.UUCP (Linda L. Lassor) writes:
> >Has anyone a callable c routine that acts like MORE or PAGE?  I need
> >to incorporate such a routine in some programs that need to display
> >files a few lines at a time, and don't want to have to do a
> >system("more filename") call to do it.
> 
> I never understand requests like this.  A functional requirement is
> described, then the obvious solution is immediately rejected.  What
> exactly is the objection to system("more filename")?

I could think of a few. Perhaps she is on an OS that doesn't easily
support spawning system processes, maybe due to small memory models
(such as MS-DOS). Or maybe she wants to avoid the possibility of a
clever user gaining shell access through the pager program, assuming the
capability exists. Or it could be that she simply wants to avoid the
overhead of spawning another program.

In that the solution she has rejected _is_ so obvious, I'm sure there
are good reasons for the rejection.
--
Roy M. Silvernail |+|  roy%cybrspc at cs.umn.edu  |+| #define opinions ALL_MINE;
main(){float x=1;x=x/50;printf("It's only $%.2f, but it's my $%.2f!\n",x,x);}
"This is cyberspace." -- Peter da Silva  :--:  "...and I like it here!" -- me



More information about the Comp.lang.c mailing list