diff options
author | marha <marha@users.sourceforge.net> | 2012-05-10 11:23:10 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-05-10 11:23:10 +0200 |
commit | 13a63d4f69c0692539448cb3d8e4a0e1ffdf2183 (patch) | |
tree | 17a9a3e6a44353fd016b1d0725141bdfc47c4021 /xorg-server/include/Xprintf.h | |
parent | 8a448108ec0bc3a0a488b2234e0d12aee503c67c (diff) | |
download | vcxsrv-13a63d4f69c0692539448cb3d8e4a0e1ffdf2183.tar.gz vcxsrv-13a63d4f69c0692539448cb3d8e4a0e1ffdf2183.tar.bz2 vcxsrv-13a63d4f69c0692539448cb3d8e4a0e1ffdf2183.zip |
xserver fontconfig mesa git update 10 May 2012
Diffstat (limited to 'xorg-server/include/Xprintf.h')
-rw-r--r-- | xorg-server/include/Xprintf.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xorg-server/include/Xprintf.h b/xorg-server/include/Xprintf.h index 414fd46fb..9e8cdc5dc 100644 --- a/xorg-server/include/Xprintf.h +++ b/xorg-server/include/Xprintf.h @@ -66,4 +66,16 @@ _X_ATTRIBUTE_PRINTF(2, 0); #define vasprintf Xvasprintf #endif +/* + * These functions provide a portable implementation of the linux kernel + * scnprintf & vscnprintf routines that return the number of bytes actually + * copied during a snprintf, (excluding the final '\0'). + */ +extern _X_EXPORT int +Xscnprintf(char *s, int n, const char * _X_RESTRICT_KYWD fmt, ...) +_X_ATTRIBUTE_PRINTF(3,4); +extern _X_EXPORT int +Xvscnprintf(char *s, int n, const char * _X_RESTRICT_KYWD fmt, va_list va) +_X_ATTRIBUTE_PRINTF(3,0); + #endif /* XPRINTF_H */ |