Mercurial > spc_convert
changeset 8:a37863126396
reordered error messages
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 21 Oct 2011 07:26:53 -0700 |
parents | 6a2c890c22db |
children | 477c36226481 |
files | convert/spc_convert.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/convert/spc_convert.c Fri Oct 21 07:25:01 2011 -0700 1.2 +++ b/convert/spc_convert.c Fri Oct 21 07:26:53 2011 -0700 1.3 @@ -17,13 +17,14 @@ 1.4 1.5 int seconds = atoi(argv[2]); 1.6 1.7 + if (argc != 7) { 1.8 + error("Incorrect Arguments\n Sample invocation: \n spc_convert -s 5 -i input.spc -o output.wav"); 1.9 + } 1.10 + 1.11 if (seconds <=0){ 1.12 error("seconds must be positive."); 1.13 } 1.14 1.15 - if (argc != 7) { 1.16 - error("Incorrect Arguments\n Sample invocation: \n spc_convert -s 5 -i input.spc -o output.wav"); 1.17 - } 1.18 /* Load SPC */ 1.19 { 1.20 /* Load file into memory */