diff src/dmres.c @ 1608:7f9fe2a9a87e

Implement dmfputs() in DMResource subsystem.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 May 2018 12:40:57 +0300
parents 0cac3360a0aa
children 08b0cbadbc45
line wrap: on
line diff
--- a/src/dmres.c	Mon May 14 11:45:33 2018 +0300
+++ b/src/dmres.c	Mon May 14 12:40:57 2018 +0300
@@ -972,6 +972,10 @@
     return (ptr > str) ? str : NULL;
 }
 
+int dmfputs(const char *str, DMResource *fh)
+{
+    return dmfwrite(str, strlen(str) + 1, 1, fh) == 1 ? 1 : EOF;
+}
 
 int dmResourceRef(DMResource *node)
 {