ca0da2559d
import of external SDK that's been sitting around for a while --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401674
16 lines
503 B
C
16 lines
503 B
C
#ifndef _INCLUDE_STUB_UTIL_FUNCTIONS_H_
|
|
#define _INCLUDE_STUB_UTIL_FUNCTIONS_H_
|
|
|
|
#include <stddef.h>
|
|
|
|
/**
|
|
* This is a platform-safe function which fixes weird idiosyncracies
|
|
* in the null-termination and return value of snprintf(). It guarantees
|
|
* the terminator on overflow cases, and never returns -1 or a value
|
|
* not equal to the number of non-terminating bytes written.
|
|
*/
|
|
size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...);
|
|
|
|
#endif //_INCLUDE_STUB_UTIL_FUNCTIONS_H_
|
|
|