diff options
author | hunt <hunt> | 2006-04-11 04:24:49 +0000 |
---|---|---|
committer | hunt <hunt> | 2006-04-11 04:24:49 +0000 |
commit | 84d31c2f715a343ec39abbea30b39e7f015f5f5b (patch) | |
tree | 597db7a340c350e97ba450bbd0e0e309481624af /runtime/vsprintf.c | |
parent | c00320eaf4f2b6a8077b109b0fe5b267b1e55b4a (diff) | |
download | systemtap-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.c | 11 |
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_ */ |