@param fp BGZF file handle
@param idx hFILE to write to
@param name file name (for error reporting only, can be NULL)
@return 0 on success and -1 on error.
Write index data from @p fp to the file @p idx.
The file name can optionally be passed in the @p name parameter. This
is only used for printing error messages; if NULL the word "index" is
used instead.
@param fp BGZF file handle @param idx hFILE to write to @param name file name (for error reporting only, can be NULL) @return 0 on success and -1 on error.
Write index data from @p fp to the file @p idx.
The file name can optionally be passed in the @p name parameter. This is only used for printing error messages; if NULL the word "index" is used instead.