diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbio.h | 4 | ||||
-rw-r--r-- | include/libn.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/libbio.h b/include/libbio.h index d8430b3..58540d4 100644 --- a/include/libbio.h +++ b/include/libbio.h @@ -16,7 +16,8 @@ typedef struct bio·Node struct bio·Node *sibling; } bio·Node; -error phylo·addchild(bio·Node* parent, bio·Node* child); +error phylo·addchild(bio·Node *parent, bio·Node* child); +bool phylo·isleaf(bio·Node *node); typedef struct bio·Tree { @@ -24,6 +25,7 @@ typedef struct bio·Tree } bio·Tree; bio·Tree bio·readnewick(Stream *file, mem·Allocator heap); +error bio·writenewick(bio·Tree tree, Stream *out); // ----------------------------------------------------------------------- // Sequences diff --git a/include/libn.h b/include/libn.h index 203a477..c8d510f 100644 --- a/include/libn.h +++ b/include/libn.h @@ -104,6 +104,7 @@ int io·readln(Stream *s, int n, byte* buf); error io·putbyte(Stream *s, byte c); int io·putstring(Stream *s, string str); vlong io·write(Stream *s, int sz, int n, void *buf); +int io·flush(Stream *s); int io·seek(Stream *s, long off, enum SeekPos origin); // ----------------------------------------------------------------------------- |