diff options
author | Dmitri Pal <dpal@redhat.com> | 2010-07-28 16:24:36 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-22 14:57:53 -0400 |
commit | 22e8ad54ccaa756931c88eb205301722d597c99d (patch) | |
tree | 668529dfe917d43cfb7fd2553bcba5fe860b0416 /ini/ini_comment.h | |
parent | 25e29187c688aa76d2db036a4d4c103a1d500f2d (diff) | |
download | ding-libs-22e8ad54ccaa756931c88eb205301722d597c99d.tar.gz ding-libs-22e8ad54ccaa756931c88eb205301722d597c99d.tar.xz ding-libs-22e8ad54ccaa756931c88eb205301722d597c99d.zip |
Extend the comment interface
Take advantage of the already known string length instead
of counting bytes once more.
Diffstat (limited to 'ini/ini_comment.h')
-rw-r--r-- | ini/ini_comment.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ini/ini_comment.h b/ini/ini_comment.h index db665f8..5365409 100644 --- a/ini/ini_comment.h +++ b/ini/ini_comment.h @@ -49,6 +49,14 @@ int ini_comment_build(struct ini_comment *ic, const char *line); /** + * Build up a comment object - use this when reading + * comments from a file when length is known. + */ +int ini_comment_build_wl(struct ini_comment *ic, + const char *line, + uint32_t length); + +/** * Modify comment by instering a line. * * idx can be: |