1.1 --- a/public/mms_sample_ext/stub_util.cpp Fri Jul 11 06:51:21 2008 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,38 +0,0 @@
1.4 -/**
1.5 - * vim: set ts=4 :
1.6 - * ======================================================
1.7 - * Metamod:Source Stub Plugin
1.8 - * Written by AlliedModders LLC.
1.9 - * ======================================================
1.10 - *
1.11 - * This software is provided 'as-is', without any express or implied warranty.
1.12 - * In no event will the authors be held liable for any damages arising from
1.13 - * the use of this software.
1.14 - *
1.15 - * This stub plugin is public domain.
1.16 - *
1.17 - * Version: $Id$
1.18 - */
1.19 -
1.20 -#include <stdio.h>
1.21 -#include <stdarg.h>
1.22 -#include "stub_util.h"
1.23 -
1.24 -size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...)
1.25 -{
1.26 - va_list ap;
1.27 -
1.28 - va_start(ap, fmt);
1.29 - size_t len = vsnprintf(buffer, maxlength, fmt, ap);
1.30 - va_end(ap);
1.31 -
1.32 - if (len >= maxlength)
1.33 - {
1.34 - len = maxlength - 1;
1.35 - buffer[len] = '\0';
1.36 - }
1.37 -
1.38 - return len;
1.39 -}
1.40 -
1.41 -