unix/fiss

lib/libfmt/runesnprint.c in master
Repositories | Summary | Log | Files | LICENSE

runesnprint.c (333B) download


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