mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
s/strupr/strtoupper/g s/strlwr/strtolower/g
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3069 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
311a71ecf8
commit
178b178f36
1 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ cvar_t pr_brokenfloatconvert = SCVAR("pr_brokenfloatconvert", "0");
|
||||||
cvar_t pr_tempstringcount = SCVAR("pr_tempstringcount", "");//"16");
|
cvar_t pr_tempstringcount = SCVAR("pr_tempstringcount", "");//"16");
|
||||||
cvar_t pr_tempstringsize = SCVAR("pr_tempstringsize", "4096");
|
cvar_t pr_tempstringsize = SCVAR("pr_tempstringsize", "4096");
|
||||||
|
|
||||||
static char *strupr(char *s)
|
static char *strtoupper(char *s)
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ static char *strupr(char *s)
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *strlwr(char *s)
|
static char *strtolower(char *s)
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
@ -1502,7 +1502,7 @@ void PF_strtolower (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
char result[8192];
|
char result[8192];
|
||||||
|
|
||||||
Q_strncpyz(result, in, sizeof(result));
|
Q_strncpyz(result, in, sizeof(result));
|
||||||
strlwr(result);
|
strtolower(result);
|
||||||
|
|
||||||
RETURN_TSTRING(result);
|
RETURN_TSTRING(result);
|
||||||
}
|
}
|
||||||
|
@ -1514,7 +1514,7 @@ void PF_strtoupper (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
char result[8192];
|
char result[8192];
|
||||||
|
|
||||||
Q_strncpyz(result, in, sizeof(result));
|
Q_strncpyz(result, in, sizeof(result));
|
||||||
strupr(result);
|
strtoupper(result);
|
||||||
|
|
||||||
RETURN_TSTRING(result);
|
RETURN_TSTRING(result);
|
||||||
}
|
}
|
||||||
|
@ -1536,7 +1536,7 @@ void PF_strftime (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
tm = gmtime(&ctime);
|
tm = gmtime(&ctime);
|
||||||
strftime(result, sizeof(result), in, tm);
|
strftime(result, sizeof(result), in, tm);
|
||||||
Q_strncpyz(result, in, sizeof(result));
|
Q_strncpyz(result, in, sizeof(result));
|
||||||
strupr(result);
|
strtoupper(result);
|
||||||
|
|
||||||
RETURN_TSTRING(result);
|
RETURN_TSTRING(result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue