bridge/class-master/depend/pari/src/modules/mpqs.c
/* appends contents of file fp1 to f (auxiliary routine for merge sort) and
 * returns number of lines copied. Close f afterwards */
appends contents of file fp1 to f (auxiliary routine for merge sort) and
returns number of lines copied. Close f afterwards
appends contents of file fp1 to f ( auxiliary routine for merge sort ) and returns number of lines copied . Close f afterwards
static long
mpqs_append_file(pariFILE *f, FILE *fp1)
{
  FILE *fp = f->file;
  char line[MPQS_STRING_LENGTH];
  long c = 0;
  while (fgets(line, MPQS_STRING_LENGTH, fp1)) { pari_fputs(line, f); c++; }
  if (fflush(fp)) pari_warn(warner, "error whilst flushing file %s", f->name);
  pari_fclose(f); return c;
}
static long mpqs_append_file ( pariFILE * f , FILE * fp1 ) { FILE * fp = f -> file ; char line [ MPQS_STRING_LENGTH ] ; long c = 0 ; while ( fgets ( line , MPQS_STRING_LENGTH , fp1 ) ) { pari_fputs ( line , f ) ; c ++ ; } if ( fflush ( fp ) ) pari_warn ( warner , " " , f -> name ) ; pari_fclose ( f ) ; return c ; }
appends contents of file fp1 to f (auxiliary routine for merge sort) and
 returns number of lines copied.
appends contents of file fp1 to f ( auxiliary routine for merge sort ) and returns number of lines copied .