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
212e319d
Commit
212e319d
authored
Nov 03, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Use the wcsrev function instead of reimplementing it.
parent
6ee8f819
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
directory.c
programs/cmd/directory.c
+1
-20
No files found.
programs/cmd/directory.c
View file @
212e319d
...
...
@@ -50,25 +50,6 @@ static BOOL paged_mode, recurse, wide, bare, lower, shortname, usernames, separa
static
ULONG
showattrs
,
attrsbits
;
/*****************************************************************************
* WCMD_strrev
*
* Reverse a WCHARacter string in-place (strrev() is not available under unixen :-( ).
*/
static
WCHAR
*
WCMD_strrev
(
WCHAR
*
buff
)
{
int
r
,
i
;
WCHAR
b
;
r
=
lstrlenW
(
buff
);
for
(
i
=
0
;
i
<
r
/
2
;
i
++
)
{
b
=
buff
[
i
];
buff
[
i
]
=
buff
[
r
-
i
-
1
];
buff
[
r
-
i
-
1
]
=
b
;
}
return
(
buff
);
}
/*****************************************************************************
* WCMD_filesize64
*
* Convert a 64-bit number into a WCHARacter string, with commas every three digits.
...
...
@@ -92,7 +73,7 @@ static WCHAR * WCMD_filesize64 (ULONGLONG n) {
*
p
=
'\0'
;
n
=
q
;
}
while
(
n
!=
0
);
WCMD_strrev
(
buff
);
wcsrev
(
buff
);
return
buff
;
}
...
...
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