Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Krishna Vinnakota
CSEP551
Commits
6639ce56
Commit
6639ce56
authored
15 years ago
by
Austin Clements
Browse files
Options
Downloads
Patches
Plain Diff
Provide memcpy for compatibility with older versions of gcc
parent
77a9aa55
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defs.h
+1
-0
1 addition, 0 deletions
defs.h
string.c
+6
-0
6 additions, 0 deletions
string.c
user.h
+1
-0
1 addition, 0 deletions
user.h
with
8 additions
and
0 deletions
defs.h
+
1
−
0
View file @
6639ce56
...
...
@@ -124,6 +124,7 @@ void popcli();
// string.c
int
memcmp
(
const
void
*
,
const
void
*
,
uint
);
void
*
memmove
(
void
*
,
const
void
*
,
uint
);
void
*
memcpy
(
void
*
,
const
void
*
,
uint
);
void
*
memset
(
void
*
,
int
,
uint
);
char
*
safestrcpy
(
char
*
,
const
char
*
,
int
);
int
strlen
(
const
char
*
);
...
...
This diff is collapsed.
Click to expand it.
string.c
+
6
−
0
View file @
6639ce56
...
...
@@ -44,6 +44,12 @@ memmove(void *dst, const void *src, uint n)
return
dst
;
}
void
*
memcpy
(
void
*
dst
,
const
void
*
src
,
uint
n
)
{
return
memmove
(
dst
,
src
,
n
);
}
int
strncmp
(
const
char
*
p
,
const
char
*
q
,
uint
n
)
{
...
...
This diff is collapsed.
Click to expand it.
user.h
+
1
−
0
View file @
6639ce56
...
...
@@ -26,6 +26,7 @@ int sleep(int);
int
stat
(
char
*
,
struct
stat
*
);
char
*
strcpy
(
char
*
,
char
*
);
void
*
memmove
(
void
*
,
void
*
,
int
);
void
*
memcpy
(
void
*
,
void
*
,
int
);
char
*
strchr
(
const
char
*
,
char
c
);
int
strcmp
(
const
char
*
,
const
char
*
);
void
printf
(
int
,
char
*
,
...);
...
...
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