11.07.2014 Views

Flute acoustics: measurement, modelling and design - School of ...

Flute acoustics: measurement, modelling and design - School of ...

Flute acoustics: measurement, modelling and design - School of ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPENDIX B. PROGRAM LISTINGS 239<br />

fprintf(stderr, "Invalid -r option\n");<br />

return 0;<br />

}<br />

rflag = 1;<br />

continue;<br />

}<br />

if(strcmp(argv[i], "-e") == 0) {<br />

if(eflag)<br />

return 0;<br />

*entryratio = at<strong>of</strong>(argv[i + 1]);<br />

if((*entryratio 1.0)) {<br />

fprintf(stderr, "Invalid -e option\n");<br />

return 0;<br />

}<br />

eflag = 1;<br />

continue;<br />

}<br />

/* else invalid option */<br />

fprintf(stderr, "Invalid option: %s\n", argv[i]);<br />

return 0;<br />

}<br />

/* Swap frequency low <strong>and</strong> high values if inverted */<br />

if((*flo > *fhi) && (*flo != 0.0) && (*fhi != 0.0)) {<br />

d = *flo;<br />

*flo = *fhi;<br />

*fhi = d;<br />

}<br />

/* Set XML filename */<br />

*xml_filename = argv[argc - numinputfiles];<br />

return 1;<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!