diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2010-06-25 16:27:36 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2010-06-25 16:27:36 -0500 |
commit | e9a3562d6a5cf88e6034570ab791e91e63ffb14a (patch) | |
tree | 8f3d0727b431f81d6f8b70195ddd8d37b6c3e8e6 /src/lib/string.c | |
parent | 8085c7634979f38c1b152d0a35b98c2447ce497a (diff) | |
download | talos-hostboot-e9a3562d6a5cf88e6034570ab791e91e63ffb14a.tar.gz talos-hostboot-e9a3562d6a5cf88e6034570ab791e91e63ffb14a.zip |
Add shell of VFS for registering and resolving message queue names.
Diffstat (limited to 'src/lib/string.c')
-rw-r--r-- | src/lib/string.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/string.c b/src/lib/string.c index fb4d435ae..eb8fe3d1c 100644 --- a/src/lib/string.c +++ b/src/lib/string.c @@ -10,6 +10,18 @@ void* memset(void* s, int c, size_t n) } } +char* strcpy(char* d, const char* s) +{ + char* d1 = d; + + do + { + *d1 = *s; + if (*s == '\0') return d; + d1++; s++; + } while(1); +} + int strcmp(const char* a, const char* b) { while((*a != '\0') && (*b != '\0')) |