int main(int argc, char* argv[]) { if(argc < 2 || strcmp(argv[1], "--help") == 0) { MMS_PRINTF("usage: %s test_from_file file\n", argv[0]); MMS_PRINTF("usage: %s test_unpack mms\n", argv[0]); MMS_PRINTF("usage: %s test_get_set\n", argv[0]); return -1; } if(strcmp(argv[1], "test_get_set") == 0) { test_get_set(); } else if(strcmp(argv[1], "test_unpack") == 0) { test_unpack(argv[2]); } else if(strcmp(argv[1], "test_from_file") == 0) { test_from_file(argv[2]); } return 0; }
int main(int argc, char *argv[]) { setbuf(stdout, NULL); test_cardinality(); test_get_set(); return 0; }
int main(void) { long long seed = time(NULL); printf("(seed=%llu)\n", seed); srand(seed); test_get_set(); test_position(); test_ensemble_position(); test_plateau(); test_chaines(); test_coup(); return EXIT_SUCCESS; }
int main(int argc, char* argv[]) { if(argc < 2 || strcmp(argv[1], "--help") == 0) { MMS_PRINTF("usage: %s test_get_set\n", argv[0]); return -1; } if(strcmp(argv[1], "test_get_set") == 0) { test_get_set(); } return 0; }