]> git.kaiwu.me - klib.git/commit
Add ks_release() to kstring.h
authorJohn Marshall <jm18@sanger.ac.uk>
Wed, 12 Mar 2014 14:33:12 +0000 (14:33 +0000)
committerJohn Marshall <jm18@sanger.ac.uk>
Thu, 2 Jul 2015 09:23:15 +0000 (10:23 +0100)
commit93531803a8dd0d2e357ad1b8fd90e07162d0e660
tree2405b9c404f740143650686f07afaca81471b292
parentc5c637a3a98f64ee0c91186b2c2e3a79425f8d9a
Add ks_release() to kstring.h

Using this function is a more explicit way of transferring ownership
than just "foo = str.s"; the latter leaves room for readers to wonder
whether a subsequent "free(str.s)" has been forgotten.
kstring.h