projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug #416 in a different way. Our handlers code in yaz_marc8_?_conv
[yaz-moved-to-github.git]
/
src
/
wrbuf.c
diff --git
a/src/wrbuf.c
b/src/wrbuf.c
index
9470477
..
19c2ce2
100644
(file)
--- a/
src/wrbuf.c
+++ b/
src/wrbuf.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: wrbuf.c,v 1.8 2005-06-25 15:46:06 adam Exp $
+ * $Id: wrbuf.c,v 1.9 2005-09-27 17:52:46 adam Exp $
*/
/**
*/
/**
@@
-81,6
+81,15
@@
int wrbuf_puts(WRBUF b, const char *buf)
return 0;
}
return 0;
}
+void wrbuf_chop_right(WRBUF b)
+{
+ while (b->pos && b->buf[b->pos-1] == ' ')
+ {
+ (b->pos)--;
+ b->buf[b->pos] = '\0';
+ }
+}
+
int wrbuf_xmlputs(WRBUF b, const char *cp)
{
return wrbuf_xmlputs_n(b, cp, strlen(cp));
int wrbuf_xmlputs(WRBUF b, const char *cp)
{
return wrbuf_xmlputs_n(b, cp, strlen(cp));