Access command line arguments without using char **argv in main

Posted by Jeffrey Aylesworth on Stack Overflow See other posts from Stack Overflow or by Jeffrey Aylesworth
Published on 2010-03-18T16:26:52Z Indexed on 2010/03/18 16:41 UTC
Read the original article Hit count: 360

Filed under:
|

Is there any way to access the command line arguments, without using the argument to main? I need to access it in another function, and I would prefer not passing it in.

I need a solution that only necessarily works on Mac OS and Linux with GCC.

© Stack Overflow or respective owner

Related posts about command-line-arguments

Related posts about c