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
b4ae2577
Commit
b4ae2577
authored
May 14, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Remove unused function ut_str_catenate()
parent
d2649c11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
37 deletions
+0
-37
innobase/include/ut0mem.h
innobase/include/ut0mem.h
+0
-11
innobase/ut/ut0mem.c
innobase/ut/ut0mem.c
+0
-26
No files found.
innobase/include/ut0mem.h
View file @
b4ae2577
...
@@ -108,17 +108,6 @@ ut_memcpyq(
...
@@ -108,17 +108,6 @@ ut_memcpyq(
const
char
*
src
,
/* in: string to be quoted */
const
char
*
src
,
/* in: string to be quoted */
ulint
len
);
/* in: length of src */
ulint
len
);
/* in: length of src */
/**************************************************************************
Catenates two strings into newly allocated memory. The memory must be freed
using mem_free. */
char
*
ut_str_catenate
(
/*============*/
/* out, own: catenated null-terminated string */
char
*
str1
,
/* in: null-terminated string */
char
*
str2
);
/* in: null-terminated string */
#ifndef UNIV_NONINL
#ifndef UNIV_NONINL
#include "ut0mem.ic"
#include "ut0mem.ic"
#endif
#endif
...
...
innobase/ut/ut0mem.c
View file @
b4ae2577
...
@@ -236,29 +236,3 @@ ut_memcpyq(
...
@@ -236,29 +236,3 @@ ut_memcpyq(
return
(
dest
);
return
(
dest
);
}
}
/**************************************************************************
Catenates two strings into newly allocated memory. The memory must be freed
using mem_free. */
char
*
ut_str_catenate
(
/*============*/
/* out, own: catenated null-terminated string */
char
*
str1
,
/* in: null-terminated string */
char
*
str2
)
/* in: null-terminated string */
{
ulint
len1
;
ulint
len2
;
char
*
str
;
len1
=
ut_strlen
(
str1
);
len2
=
ut_strlen
(
str2
);
str
=
mem_alloc
(
len1
+
len2
+
1
);
ut_memcpy
(
str
,
str1
,
len1
);
ut_memcpy
(
str
+
len1
,
str2
,
len2
+
1
);
return
(
str
);
}
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