mirror of
https://github.com/nzp-team/glquake.git
synced 2025-02-14 16:01:25 +00:00
Add q_snprintf
This commit is contained in:
parent
f9847970e5
commit
80885493aa
1 changed files with 12 additions and 0 deletions
|
@ -132,6 +132,18 @@ void InsertLinkAfter (link_t *l, link_t *after)
|
||||||
============================================================================
|
============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
int q_snprintf (char *str, size_t size, const char *format, ...)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
va_list argptr;
|
||||||
|
|
||||||
|
va_start (argptr, format);
|
||||||
|
ret = q_vsnprintf (str, size, format, argptr);
|
||||||
|
va_end (argptr);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
void Q_memset (void *dest, int fill, int count)
|
void Q_memset (void *dest, int fill, int count)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in a new issue