diff options
Diffstat (limited to 'src/vppinfra/format.c')
-rw-r--r-- | src/vppinfra/format.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vppinfra/format.c b/src/vppinfra/format.c index 70292c048ec..e2fd84bb08b 100644 --- a/src/vppinfra/format.c +++ b/src/vppinfra/format.c @@ -463,6 +463,17 @@ fformat (FILE * f, char *fmt, ...) } #ifdef CLIB_UNIX +void +fformat_append_cr (FILE * ofp, const char *fmt, ...) +{ + va_list va; + + va_start (va, fmt); + (void) va_fformat (ofp, (char *) fmt, &va); + va_end (va); + fformat (ofp, "\n"); +} + word fdformat (int fd, char *fmt, ...) { |