Skip to content

Commit

Permalink
countfa v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bjmt committed Apr 28, 2019
1 parent 8fcdbee commit 7f39b30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sequence in memory
* countlets has a new -a option, allowing to specify alphabet to prevent
loading entire sequence into memory (at the cost of speed for higher k)
* countlets version bumped to v1.1
* countfa now reads one char at a time, version bumped to v1.1

2019-04-26 Benjamin Jean-Marie Tremblay <[email protected]>

Expand Down
6 changes: 2 additions & 4 deletions src/countfa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using namespace std;

void usage() {
printf(
"countfa v1.0 Copyright (C) 2019 Benjamin Jean-Marie Tremblay \n"
"countfa v1.1 Copyright (C) 2019 Benjamin Jean-Marie Tremblay \n"
" \n"
"Usage: coutfa -i [filename] \n"
" cat [filename] | coutfa \n"
Expand Down Expand Up @@ -57,9 +57,7 @@ void do_countfa(istream &input) {
}

if (at_name) cout << l;
else {
if (l != ' ' && l != '\n') ++counter;
}
else if (l != ' ' && l != '\n') ++counter;

}

Expand Down

0 comments on commit 7f39b30

Please sign in to comment.