Logo Search packages:      
Sourcecode: cbmconvert version File versions  Download package

static byte_t GetByte ( void   )  [static]

Receive a byte (eight bits) from the input

Returns:
the received byte

Definition at line 154 of file unarc.c.

References fp, and Status.

Referenced by GetBit(), GetHeader(), GetStartPos(), and UnPack().

{
  if (Status == EOF)
    return 0;

  if (feof (fp) || ferror (fp)) {
    Status = EOF;
    return 0;
  }
  else
    Status = 0;

  return (unsigned char) (fgetc (fp) & 0xff);
}


Generated by  Doxygen 1.6.0   Back to index