PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] None
Date: Saturday, 24 Oct 2020, 17:44:57


    > Message Posted By: Unknown
    >
    > When I add:
    > setvbuf (stdin,  bin,  _IONBF, 0);
    > setvbuf (stdout, bout, _IONBF, 0);
    >
    > to main(), I get an error saying bin and bout are undeclared (first use in
    > function). What are bin and bout signifying and how can we fix this?

Sorry, the two lines should have been the following
three lines:

  static char bin[64], bout[64];             // Use small static buffers
  setvbuf (stdin,  bin,  _IOFBF, 64);
  setvbuf (stdout, bout, _IOFBF, 64);

--Stan-
PREV INDEX NEXT