Exemplo n.º 1
0
main(int argc, char **argv)
{
    char ofile[64];
    if (argc == 1)
        strcpy(ofile, "Data/ordersfile.data");
    else {
        strcpy(ofile, "Data/");
        strcat(ofile, argv[1]);
    }
    run_user_validation(ofile);
}
Exemplo n.º 2
0
main(int argc, char **argv)        /* C is on top, Python is embedded */
{                                  /* but Python can use C extensions too */
    run_user_validation();         /* don't need sys.argv in embedded code */
}