Ejemplo n.º 1
0
/*
 * @brief Main function for DXFLib test program.
 *
 * @param argc Number of delimited items on command line,
 *		including program name.
 * @param argv Pointer to array of command line items
 *
 * @retval 0 if missing input file argument or
 *		file couldn't be opened
 * @retval 1 if file opened
 */
int main(int argc, char** argv) {

    // Check given arguments:
    if (argc<2) {
        usage();
        return 0;
    }

    testReading(argv[1]);

    testWriting();

    return 0;
}
Ejemplo n.º 2
0
/**
 * Performs the test by calling testWriting()
 */
int main(int argc, char* argv[]){
	return testWriting();
}