mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
Implemented two Microsoft-functions.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3067 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
71ade84614
commit
6c17a4a7f0
1 changed files with 30 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
#include "pr_common.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
//fixme
|
||||
#define Z_QC_TAG 2
|
||||
#define PRSTR 0xa6ffb3d7
|
||||
|
@ -14,6 +16,34 @@ cvar_t pr_brokenfloatconvert = SCVAR("pr_brokenfloatconvert", "0");
|
|||
cvar_t pr_tempstringcount = SCVAR("pr_tempstringcount", "");//"16");
|
||||
cvar_t pr_tempstringsize = SCVAR("pr_tempstringsize", "4096");
|
||||
|
||||
static char *strupr(char *s)
|
||||
{
|
||||
char *p;
|
||||
|
||||
p = s;
|
||||
while(*p)
|
||||
{
|
||||
*p = toupper(*p);
|
||||
p++;
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
static char *strlwr(char *s)
|
||||
{
|
||||
char *p;
|
||||
|
||||
p = s;
|
||||
while(*p)
|
||||
{
|
||||
*p = tolower(*p);
|
||||
p++;
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
void PF_Common_RegisterCvars(void)
|
||||
{
|
||||
static qboolean alreadydone;
|
||||
|
|
Loading…
Reference in a new issue