Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Environments
Terraform modules
Monitor
Incidents
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
Main
Synchronet
Commits
095781e2
Commit
095781e2
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Moved backslash() here (from sbbs3/str_util.c).
parent
0dfc0b88
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
src/xpdev/dirwrap.c
+16
-0
16 additions, 0 deletions
src/xpdev/dirwrap.c
src/xpdev/dirwrap.h
+1
-0
1 addition, 0 deletions
src/xpdev/dirwrap.h
with
17 additions
and
0 deletions
src/xpdev/dirwrap.c
+
16
−
0
View file @
095781e2
...
...
@@ -716,3 +716,19 @@ char * DLLCALL _fullpath(char *target, const char *path, size_t size) {
return
(
target
);
}
#endif
/****************************************************************************/
/* Adds a trailing slash/backslash on path strings */
/****************************************************************************/
char
*
DLLCALL
backslash
(
char
*
path
)
{
char
*
p
;
p
=
lastchar
(
str
);
if
(
*
p
!=
'/'
&&
*
p
!=
'\\'
)
{
*
(
p
++
)
=
BACKSLASH
;
*
p
=
0
;
}
return
(
path
);
}
This diff is collapsed.
Click to expand it.
src/xpdev/dirwrap.h
+
1
−
0
View file @
095781e2
...
...
@@ -193,6 +193,7 @@ DLLEXPORT char* DLLCALL getfname(const char* path);
DLLEXPORT
int
DLLCALL
getfattr
(
const
char
*
filename
);
DLLEXPORT
ulong
DLLCALL
getfreediskspace
(
const
char
*
path
,
ulong
unit
);
DLLEXPORT
ulong
DLLCALL
delfiles
(
char
*
inpath
,
char
*
spec
);
DLLEXPORT
char
*
DLLCALL
backslash
(
char
*
path
);
#if defined(__unix__)
DLLEXPORT
void
DLLCALL
_splitpath
(
const
char
*
path
,
char
*
drive
,
char
*
dir
,
...
...
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