Monado OpenXR Runtime
u_truncate_printf.h File Reference

Truncating versions of string printing functions. More...

#include "xrt/xrt_compiler.h"
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
Include dependency graph for u_truncate_printf.h:

Go to the source code of this file.

Functions

static int u_truncate_vsnprintf (char *chars, size_t char_count, const char *fmt, va_list args)
 We want to truncate the value, not get the possible written. More...
 
static int u_truncate_snprintf (char *chars, size_t char_count, const char *fmt,...)
 We want to truncate the value, not get the possible written, and error when we can not write out anything. More...
 

Detailed Description

Truncating versions of string printing functions.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m