File: snprintf_vms.c

package info (click to toggle)
tcptrace 6.6.7-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 9,440 kB
  • sloc: ansic: 24,663; sh: 3,704; makefile: 237; lex: 162; yacc: 99
file content (13 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <stdarg.h>

int snprintf_vms(char *str, size_t len, const char *fmt, ...)
{
   va_list ap;
   int n;

   va_start(ap, fmt);
   n = vsprintf(str, fmt, ap);
   va_end(ap);
   return n;
}