break;
case 's':
- nsamples_to_skip = (long long) strtof(optarg, 0);
+ nsamples_to_skip = (long long) strtod(optarg, 0);
if (nsamples_to_skip < 0){
usage(argv[0]);
fprintf(stderr, " nsamples_to_skip must be >= 0\n");
break;
case 'd':
- max_doppler = strtof(optarg, 0);
+ max_doppler = strtod(optarg, 0);
if (max_doppler < 0 || max_doppler >= 0.5){
usage(argv[0]);
fprintf(stderr, " max_doppler must be in [0, 0.5)\n");
break;
case 's':
- nsamples_to_skip = (long long) strtof(optarg, 0);
+ nsamples_to_skip = (long long) strtod(optarg, 0);
if (nsamples_to_skip < 0){
usage(argv[0]);
fprintf(stderr, " nsamples_to_skip must be >= 0\n");
break;
case 'n':
- nsamples_to_produce = (long long) strtof(optarg, 0);
+ nsamples_to_produce = (long long) strtod(optarg, 0);
if (nsamples_to_produce < 0){
usage(argv[0]);
fprintf(stderr, " nsamples_to_produce must be >= 0\n");
break;
case 'g':
- gain_db = strtof(optarg, 0);
+ gain_db = strtod(optarg, 0);
break;
case 'f':
- tx_freq = strtof(optarg, 0);
+ tx_freq = strtod(optarg, 0);
break;
case 'r':
- sample_rate = strtof(optarg, 0);
+ sample_rate = strtod(optarg, 0);
break;
case '?':
break;
case 's':
- nsamples_to_skip = (long long) strtof(optarg, 0);
+ nsamples_to_skip = (long long) strtod(optarg, 0);
if (nsamples_to_skip < 0){
usage(argv[0]);
fprintf(stderr, " nsamples_to_skip must be >= 0\n");
break;
case 'n':
- nsamples_to_produce = (long long) strtof(optarg, 0);
+ nsamples_to_produce = (long long) strtod(optarg, 0);
if (nsamples_to_produce < 0){
usage(argv[0]);
fprintf(stderr, " nsamples_to_produce must be >= 0\n");
break;
case 'g':
- gain_db = strtof(optarg, 0);
+ gain_db = strtod(optarg, 0);
break;
case 'f':
- tx_freq = strtof(optarg, 0);
+ tx_freq = strtod(optarg, 0);
break;
case 'r':
- sample_rate = strtof(optarg, 0);
+ sample_rate = strtod(optarg, 0);
break;
case 'S':
- start_time = strtof(optarg, 0);
+ start_time = strtod(optarg, 0);
break;
case '?':