32 for(
int ii=1; ii<argc-1; ii++ )
34 if( 0==strcmp( argv[ii], name) )
36 ret=atoi( argv[ii+1] );
62 for(
int ii=1; ii<argc; ii++ )
64 if( 0==strcmp( argv[ii], name) )
79 strncpy( dst, argv[index+1], dstLen );
81 strncpy( dst, defValue, dstLen );
int GetStrFromCommnadLine(int argc, char **argv, const char *name, char *defValue, char *dst, int dstLen)
Get string value from command line.
int GetFromCommnadLine(int argc, char **argv, const char *name, int defValue)
Get integer value from command line.