Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

number of lines read not displaying correctly #9

Open
kerravon86 opened this issue Jul 8, 2023 · 0 comments
Open

number of lines read not displaying correctly #9

kerravon86 opened this issue Jul 8, 2023 · 0 comments

Comments

@kerravon86
Copy link

When reading a new file it says "read (garbage) lines". Here is a fix:

C:\devel\uemacspd\src>cvs diff -c -r 1.2 echo.c
Index: echo.c

RCS file: \cvsroot/uemacspd/src/echo.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -r1.2 -r1.3
*** echo.c 8 Jul 2023 05:58:43 -0000 1.2
--- echo.c 8 Jul 2023 06:14:02 -0000 1.3


*** 363,376 ****

  • echo line. The formatting is done by a call
  • to the standard formatting routine.
    /
    ! void eprintf(char
    fp, va_list ap)
    {
    ttcolor(CTEXT);
    ttmove(nrow-1, 0);
    eformat(fp, ap);
    tteeol();
    ttflush();
    epresf = TRUE;
    }

/*
--- 363,382 ----

  • echo line. The formatting is done by a call
  • to the standard formatting routine.
    /
    ! void eprintf(char
    fp, ...)
    {
  • va_list ap;
    
  • va_start(ap, fp);
    
  •   ttcolor(CTEXT);
      ttmove(nrow-1, 0);
      eformat(fp, ap);
      tteeol();
      ttflush();
      epresf = TRUE;
    
  • va_end(ap);
    

    }

    /*

C:\devel\uemacspd\src>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant