How do I pass an integer value through the argv[] array?
ex
If I were to then run this
in my terminal I get back some gigantic negative number that is not 7.
ex
Code:
#include <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSLog(@"The int value you passed was: %d", argv[1]);
return (0);
}
Code:
pMac:/ premise$ ./myApp 7