YAZ_EXPORT
int wrbuf_sha1_write(WRBUF b, const char *cp, size_t sz, int hexit);
+/** \brief writes SHA1 text to WRBUF
+ \param b result
+ \param cp C-string
+ \param hexit 1=hex mode; 0=binary
+ \returns 0 if successful
+ \returns -1 on error
+*/
+YAZ_EXPORT
+int wrbuf_sha1_puts(WRBUF b, const char *cp, int hexit);
+
YAZ_END_CDECL
#endif
#endif
}
+int wrbuf_sha1_puts(WRBUF b, const char *cp, int hexit)
+{
+ return wrbuf_sha1_write(b, cp, strlen(cp), hexit);
+}
+
/*
* Local variables:
* c-basic-offset: 4