libk  bufwrite.fn.c at [50b709b0d3]

File mod/kstr/bufwrite.fn.c artifact 564ff21d85 part of check-in 50b709b0d3


#include <k/type.h>
#include <k/str.h>
#include <k/io.h>

kcond
ksbufwrite(ksbuf* out, const char** array) {
	for (sz i=0; array[i] != null; ++ i) {
		ksraw str = { 0, array[i] };
		kcond c = ksbufput(out, str);
		if (!kokay(c)) return c;
	}

	return kscond_ok;
}