Anonymous user
Bitwise IO: Difference between revisions
→{{header|C}}
m (moved Bit oriented IO to Bitwise IO) |
|||
Line 161:
if ( rfree == 0 )
{
c =
if ( c == EOF )
{
Line 182:
if ( cumulus == sochar )
{
cumulus = 0; bitbuf = 0;
}
Line 196:
{
bitbuf <<= (sochar - cumulus);
fflush(o);
cumulus = 0; bitbuf = 0;
Line 223:
rbitbuf = 0;
rfree = 0;
return
}
Line 271:
while( bits_read(&r, 7, stdin) != EOF )
{
}
return 0;
|