Mercurial > hg > wm
comparison Meerwald/gen_kund3_sig.c @ 7:2b350281f8b0
fix number of bits written
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Wed, 16 Apr 2008 15:55:52 +0200 |
parents | acb6967ee76d |
children | f83ef905a63d |
comparison
equal
deleted
inserted
replaced
6:f8f572f26fef | 7:2b350281f8b0 |
---|---|
182 if (fscanf(in, "%128[^\n\r]", signature) == EOF) { | 182 if (fscanf(in, "%128[^\n\r]", signature) == EOF) { |
183 fprintf(stderr, "%s: failed to read signature bits from %s\n", progname, input_name); | 183 fprintf(stderr, "%s: failed to read signature bits from %s\n", progname, input_name); |
184 exit(1); | 184 exit(1); |
185 } | 185 } |
186 n_signature = strlen(signature); | 186 n_signature = strlen(signature); |
187 nbit_signature = NBYTESTOBITS(n_signature); | 187 n = nbit_signature = NBYTESTOBITS(n_signature); |
188 fprintf(stderr, "%s: got %d signature bits\n", progname, nbit_signature); | 188 fprintf(stderr, "%s: got %d signature bits\n", progname, nbit_signature); |
189 } | 189 } |
190 | 190 |
191 fprintf(out, "KD3SG\n"); | 191 fprintf(out, "KD3SG\n"); |
192 fprintf(out, "%d\n", n); | 192 fprintf(out, "%d\n", n); |