9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

runesprint.c (318B)


      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 runesprint(Rune *buf, char *fmt, ...)
     10 {
     11 	int n;
     12 	va_list args;
     13 
     14 	va_start(args, fmt);
     15 	n = runevsnprint(buf, 256, fmt, args);
     16 	va_end(args);
     17 	return n;
     18 }