Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3dc04219
Commit
3dc04219
authored
Jul 18, 1999
by
Albert den Haan
Committed by
Alexandre Julliard
Jul 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove string.c because all of its functions were moved to crtdll.c
where they belonged.
parent
021bd858
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
68 deletions
+0
-68
Makefile.in
misc/Makefile.in
+0
-1
string.c
misc/string.c
+0
-67
No files found.
misc/Makefile.in
View file @
3dc04219
...
@@ -27,7 +27,6 @@ C_SRCS = \
...
@@ -27,7 +27,6 @@ C_SRCS = \
sound.c
\
sound.c
\
spy.c
\
spy.c
\
stress.c
\
stress.c
\
string.c
\
system.c
\
system.c
\
toolhelp.c
\
toolhelp.c
\
tweak.c
\
tweak.c
\
...
...
misc/string.c
deleted
100644 → 0
View file @
021bd858
/*
* 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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment