Artifact 564ff21d8548c2e99badcc34d595fafa63f495e2aa69a590beea33b0326f2c51:
- File mod/kstr/bufwrite.fn.c — part of check-in [927371b674] at 2019-10-31 03:44:25 on branch trunk — add usage display for parameters and command line switches for kcli_set, the structure used to define command line syntax for the parser; add more string & buffer functions (user: lexi, size: 264) [annotate] [blame] [check-ins using]
#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; }