]> git.kaiwu.me - klib.git/commit
ks_resize() canonicalises the stored string
authorJohn Marshall <jm18@sanger.ac.uk>
Tue, 23 Jul 2013 15:16:19 +0000 (16:16 +0100)
committerJohn Marshall <jm18@sanger.ac.uk>
Tue, 23 Jul 2013 15:16:19 +0000 (16:16 +0100)
commite1c00506671062bea47166f4ee77068d8bdb8b12
treebaa19fbb37c59dae08136880e7c1de28b4c420ab
parent41bff76244199c8d479fc3478e9f1b664174408b
ks_resize() canonicalises the stored string

It ensures the string is NUL-terminated, especially in the case that
ks_resize(&kstr,1) has been used on a newly-created kstring_t to ensure
that kstr.s is not NULL.
kstring.h