/*------------------------------------------------------------------------- * Function: hrepack * * Purpose: locate all high-level HDF objects in the file * and compress/chunk them using options * * Algorythm: 2 traversals are made to the file; the 1st builds a list of * the high-level objects, the 2nd makes a copy of them, using the options; * the reason for the 1st traversal is to check for invalid object name requests * * Return: FAIL, SUCCEED * * Programmer: Pedro Vicente, [email protected] * * Date: July 10, 2003 * *------------------------------------------------------------------------- */ int hrepack_main(const char* infile, const char* outfile, options_t *options) { options->trip=0; /* also checks input */ if (print_options(options)<0) return FAIL; /* first check for objects in input that are in the file */ if (list_main(infile,outfile,options)<0) return FAIL; /* the real deal now */ options->trip=1; if (options->verbose) printf("Making new file %s...\n",outfile); /* this can fail for different reasons */ if (list_main(infile,outfile,options)<0) return FAIL; return SUCCEED; }
int main(void) { int size; int size_gene; size_gene = sizeof(gene); size = sizeof(gene); printf("%s\n", gene); count(gene,size); printf("\n"); strcount(gene); list_main(); return 0; }