Example #1
0
filetype detect_type(FILE *infile) {
    if (ist64(infile))
        return t64;
    if (isp00(infile))
        return p00;
    if (isprg(infile))
        return prg;
    return not_a_valid_file;
}
Example #2
0
filetype detect_type(int ingresso){
  if (ist64(ingresso)) return t64;
  if (isp00(ingresso)) return p00;
  if (isprg(ingresso)) return prg;
  return not_a_valid_file;
}