FreeBSD/lib/libstand/dosfs.c
/*
 * Count number of clusters in chain
 */
Count number of clusters in chain
Count number of clusters in chain
static int
fatcnt(DOS_FS *fs, u_int c)
{
   int n;
   for (n = 0; okclus(fs, c); n++)
      if (fatget(fs, &c))
	  return -1;
   return fatend(fs->fatsz, c) ? n : -1;
}
static int fatcnt ( DOS_FS * fs , u_int c ) { int n ; for ( n = 0 ; okclus ( fs , c ) ; n ++ ) if ( fatget ( fs , & c ) ) return -1 ; return fatend ( fs -> fatsz , c ) ? n : -1 ; }
Count number of clusters in chain
Count number of clusters in chain