runesnprint.c - 9base - revived minimalist port of Plan 9 userland to Unix
 (HTM) git clone git://git.suckless.org/9base
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       runesnprint.c (329B)
       ---
            1 /* Copyright (c) 2002-2006 Lucent Technologies; see LICENSE */
            2 #include <stdarg.h>
            3 #include <string.h>
            4 #include "plan9.h"
            5 #include "fmt.h"
            6 #include "fmtdef.h"
            7 
            8 int
            9 runesnprint(Rune *buf, int len, char *fmt, ...)
           10 {
           11         int n;
           12         va_list args;
           13 
           14         va_start(args, fmt);
           15         n = runevsnprint(buf, len, fmt, args);
           16         va_end(args);
           17         return n;
           18 }
           19