in reply to Re: Re: Reading past EOF characters in tar files?
in thread Reading past EOF characters in tar files?

What does getchar return? Does it return a number (the numeric value of the character) or a string with the character?

In any event, you're going to have problems with that test. If getchar returns the numeric character value, it's going to stop at the first NUL (0) character. If it returns the character itself, it'll stop if the character is "0" (0x30).

  • Comment on Re: Re: Re: Reading past EOF characters in tar files?