Exemplo n.º 1
0
Arquivo: bitio.c Projeto: cran/rcqp
/**
 * Closes a bit input / output stream buffer.
 *
 * If this is an output buffer, it is flushed before closing.
 *
 * @param stream  The stream buffer to close.
 * @return        Always returns true.
 */
int
BSclose(BStream *stream)
{
  if (stream->mode == 'w') 
    BSflush(stream);
  stream->base = NULL;

  return 1;
}
Exemplo n.º 2
0
void  CSflush(CompressedStream *cs){

   BSflush(cs->bs);

}