diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-03-06 11:20:34 -0500 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-03-06 11:20:34 -0500 |
commit | 4c13c5f96f2ee370324de582b3b836efc3972c85 (patch) | |
tree | f73ded6ba7ab227ff269e99493478372f2d9c775 /src | |
parent | 4bc4954b2476397c29b57d20bd3eb47926b30860 (diff) |
use basename in otu headers
Diffstat (limited to 'src')
-rw-r--r-- | src/c/multifasta_to_otu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/multifasta_to_otu.c b/src/c/multifasta_to_otu.c index 32cc3e9..5c2b23d 100644 --- a/src/c/multifasta_to_otu.c +++ b/src/c/multifasta_to_otu.c @@ -469,9 +469,9 @@ int main(int argc, char **argv) { // print our filename headers for(i = 0; i < dir_count - 1; i++) { - fprintf(output_fh, "%s\t", filenames[i]); + fprintf(output_fh, "%s\t", basename(filenames[i])); } - fprintf(output_fh, "%s\n", filenames[dir_count - 1]); + fprintf(output_fh, "%s\n", basename(filenames[dir_count - 1])); for(j = 0; j < sequences; j++) { |