PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] getc()
Date: Wednesday, 18 Mar 2020, 17:55:15


    > Message Posted By: Unknown
    >
    > Do we need || are we allowed to use functions that handle files like getc
    > or putc?

getline() uses getc() to read lines.

Since your code may not declare or malloc() any arrays,
it cannot itself use getc() to read lines.

You may use putc(), but puts() or printf() is easier.

--Stan-
PREV INDEX NEXT