I have a function which handles command line parameters (NOT main()), turns the second one into unsigned long int. Now, I need that function to pass that unsigned long int number into another function, but I'm not quite sure how to do that.
I'm probably not just getting it when it's connected with command line, so I'd appreciate if somebody explained it to me like for a 3-year-old.
int param(int argc, char *argv[]) {
unsigned long num;
/* conversion of argv[2] to num, already have that */
return num;
}
int calling() {
unsigned long m;
/* need to use the num value here */
}
Thank you!

New Topic/Question
Reply




MultiQuote






|