Read this: FAQ > main() / void main() / int main() / int main(void) / int main(int argc, char *argv[]) - Cprogramming.com.
Type: Posts; User: anduril462
Read this: FAQ > main() / void main() / int main() / int main(void) / int main(int argc, char *argv[]) - Cprogramming.com.
Post the exact code that didn't work, and what input you gave, that caused this problem. I don't see argv[2] being copied into a temp var anywhere.
EDIT: Woah, I guess I got carried away at work for longer than I thought...opened this thread a while ago, several people already covered this.
This is certainly a problem:
isdigit(argv[2])...