src/contrib/subversion/subversion/libsvn_delta/svndiff.c
/* Read one byte from STREAM into *BYTE. */
Read one byte from STREAM into *BYTE.
Read one byte from STREAM into * BYTE .
static svn_error_t *
read_one_byte(unsigned char *byte, svn_stream_t *stream)
{
  char c;
  apr_size_t len = 1;
  SVN_ERR(svn_stream_read_full(stream, &c, &len));
  if (len == 0)
    return svn_error_create(SVN_ERR_SVNDIFF_UNEXPECTED_END, NULL,
                            _("Unexpected end of svndiff input"));
  *byte = (unsigned char) c;
  return SVN_NO_ERROR;
}
static svn_error_t * read_one_byte ( unsigned char * byte , svn_stream_t * stream ) { char c ; apr_size_t len = 1 ; SVN_ERR ( svn_stream_read_full ( stream , & c , & len ) ) ; if ( len == 0 ) return svn_error_create ( SVN_ERR_SVNDIFF_UNEXPECTED_END , NULL , _ ( " " ) ) ; * byte = ( unsigned char ) c ; return SVN_NO_ERROR ; }
Read one byte from STREAM into *BYTE.
Read one byte from STREAM into * BYTE .