summaryrefslogtreecommitdiffstats
path: root/runtime/vsprintf.c
diff options
context:
space:
mode:
authorhunt <hunt>2006-04-11 04:24:49 +0000
committerhunt <hunt>2006-04-11 04:24:49 +0000
commit84d31c2f715a343ec39abbea30b39e7f015f5f5b (patch)
tree597db7a340c350e97ba450bbd0e0e309481624af /runtime/vsprintf.c
parentc00320eaf4f2b6a8077b109b0fe5b267b1e55b4a (diff)
downloadsystemtap-steved-84d31c2f715a343ec39abbea30b39e7f015f5f5b.tar.gz
systemtap-steved-84d31c2f715a343ec39abbea30b39e7f015f5f5b.tar.xz
systemtap-steved-84d31c2f715a343ec39abbea30b39e7f015f5f5b.zip
2006-04-10 Martin Hunt <hunt@redhat.com>
* vsprintf.c (_stp_snprintf): New function.
Diffstat (limited to 'runtime/vsprintf.c')
-rw-r--r--runtime/vsprintf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/vsprintf.c b/runtime/vsprintf.c
index 45e15ce5..04843758 100644
--- a/runtime/vsprintf.c
+++ b/runtime/vsprintf.c
@@ -386,4 +386,15 @@ int _stp_vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
return (i >= size) ? (size - 1) : i;
}
+int _stp_snprintf(char *buf, size_t size, const char *fmt, ...)
+{
+ va_list args;
+ int i;
+
+ va_start(args, fmt);
+ i=_stp_vsnprintf(buf,size,fmt,args);
+ va_end(args);
+ return i;
+}
+
#endif /* _VSPRINTF_C_ */