Sorry for the previous message I did it by mistake..
the function was like below:
 
void get_args(int argc, char* argv[], Argument* args)
{
    //check the amount of the arguments
    if(argc%2 == 0)
   {
       printf("Error, incorrect argument numbers : %d\n",argc);
       print_help();
       exit(1);
    }
   
.....
.........
}
 
My first question about the pointers here; how can I convert them to Python?
 
And second and may be a little stupid; do I need to define argc how can I get arguments in python ?
 
Thanks in advance,
 
Burge
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to