hbase

heirloom base
git clone git://git.2f30.org/hbase
Log | Files | Refs | README

snprint.c (301B)


      1 /* Copyright (c) 2002-2006 Lucent Technologies; see LICENSE */
      2 #include <stdarg.h>
      3 #include "plan9.h"
      4 #include "fmt.h"
      5 #include "fmtdef.h"
      6 
      7 int
      8 snprint(char *buf, int len, char *fmt, ...)
      9 {
     10 	int n;
     11 	va_list args;
     12 
     13 	va_start(args, fmt);
     14 	n = vsnprint(buf, len, fmt, args);
     15 	va_end(args);
     16 	return n;
     17 }
     18