Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
66085f23
Commit
66085f23
authored
Oct 29, 2014
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysys/mf_fn_ext.c: typos & indents
parent
e4521f8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
mysys/mf_fn_ext.c
mysys/mf_fn_ext.c
+8
-6
No files found.
mysys/mf_fn_ext.c
View file @
66085f23
...
...
@@ -29,7 +29,7 @@
(normally '.') after the directory name.
RETURN VALUES
Pointer to t
o t
he extension character. If there isn't any extension,
Pointer to the extension character. If there isn't any extension,
points at the end ASCII(0) of the filename.
*/
...
...
@@ -49,7 +49,7 @@ char *fn_ext(const char *name)
if
(
!
(
gpos
=
strrchr
(
name
,
FN_LIBCHAR
)))
gpos
=
name
;
#endif
pos
=
strchr
(
gpos
,
FN_EXTCHAR
);
pos
=
strchr
(
gpos
,
FN_EXTCHAR
);
DBUG_RETURN
((
char
*
)
(
pos
?
pos
:
strend
(
gpos
)));
}
/* fn_ext */
...
...
@@ -58,7 +58,7 @@ char *fn_ext(const char *name)
Return a pointer to the extension of the filename.
SYNOPSIS
fn_ext()
fn_ext
2
()
name Name of file
DESCRIPTION
...
...
@@ -66,7 +66,7 @@ char *fn_ext(const char *name)
(normally '.') after the directory name.
RETURN VALUES
Pointer to t
o t
he extension character. If there isn't any extension,
Pointer to the extension character. If there isn't any extension,
points at the end ASCII(0) of the filename.
*/
...
...
@@ -86,6 +86,8 @@ char *fn_ext2(const char *name)
if
(
!
(
gpos
=
strrchr
(
name
,
FN_LIBCHAR
)))
gpos
=
name
;
#endif
pos
=
strrchr
(
gpos
,
FN_EXTCHAR
);
// locate the last occurence of FN_EXTCHAR
pos
=
strrchr
(
gpos
,
FN_EXTCHAR
);
DBUG_RETURN
((
char
*
)
(
pos
?
pos
:
strend
(
gpos
)));
}
/* fn_ext */
}
/* fn_ext2 */
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