Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
6d7773c9
Commit
6d7773c9
authored
26 years ago
by
Zygo Blaxell
Committed by
Alexandre Julliard
26 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented some CRTDLL string functions.
parent
61afa33b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc/Makefile.in
+1
-0
1 addition, 0 deletions
misc/Makefile.in
misc/string.c
+67
-0
67 additions, 0 deletions
misc/string.c
with
68 additions
and
0 deletions
misc/Makefile.in
+
1
−
0
View file @
6d7773c9
...
...
@@ -28,6 +28,7 @@ C_SRCS = \
spooler.c
\
spy.c
\
stress.c
\
string.c
\
system.c
\
tapi32.c
\
toolhelp.c
\
...
...
This diff is collapsed.
Click to expand it.
misc/string.c
0 → 100644
+
67
−
0
View file @
6d7773c9
/*
* implementation of MSDEVS extensions to string.h
*
* Copyright 1999 Corel Corporation (Albert den Haan)
*/
/* WARNING: The Wine declarations are in tchar.h for now since string.h is
* not available to be altered in most development environments. MSDEVS 5
* declarse these functions in its own "string.h" */
#include
"tchar.h"
#include
<ctype.h>
#include
<assert.h>
char
*
_strlwr
(
char
*
string
)
{
char
*
cp
;
assert
(
string
!=
NULL
);
for
(
cp
=
string
;
*
cp
;
cp
++
)
{
*
cp
=
tolower
(
*
cp
);
}
return
string
;
}
char
*
_strrev
(
char
*
string
)
{
char
*
pcFirst
,
*
pcLast
;
assert
(
string
!=
NULL
);
pcFirst
=
pcLast
=
string
;
/* find the last character of the string
* (i.e. before the assumed nul-character) */
while
(
*
(
pcLast
+
1
))
{
pcLast
++
;
}
/* if the following ASSERT fails look for a bad (i.e. not nul-terminated)
* string */
assert
(
pcFirst
<=
pcLast
);
/* reverse the string */
while
(
pcFirst
<
pcLast
)
{
/* swap characters across the middle */
char
cTemp
=
*
pcFirst
;
*
pcFirst
=
*
pcLast
;
*
pcLast
=
cTemp
;
/* move towards the middle of the string */
pcFirst
++
;
pcLast
--
;
}
return
string
;
}
char
*
_strupr
(
char
*
string
)
{
char
*
cp
;
assert
(
string
!=
NULL
);
for
(
cp
=
string
;
*
cp
;
cp
++
)
{
*
cp
=
toupper
(
*
cp
);
}
return
string
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment