metalsvm/include/metalsvm/string.h
2011-08-02 15:58:20 +02:00

54 lines
1.1 KiB
C

/*
* Written by the Chair for Operating Systems, RWTH Aachen University
*
* NO Copyright (C) 2010-2011, Stefan Lankes
* consider these trivial functions to be public domain.
*
* These functions are distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#ifndef __STRING_H__
#define __STRING_H__
#include <metalsvm/stddef.h>
#include <asm/string.h>
#include <asm/io.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef HAVE_ARCH_MEMCPY
void *memcpy(void *dest, const void *src, size_t count);
#endif
#ifndef HAVE_ARCH_MEMSET
void *memset(void *dest, int val, size_t count);
#endif
#ifndef HAVE_ARCH_STRLEN
size_t strlen(const char *str);
#endif
#ifndef HAVE_ARCH_STRNCPY
char* strncpy(char *dest, const char *src, size_t n);
#endif
#ifndef HAVE_ARCH_STRCPY
char* strcpy(char *dest, const char *src);
#endif
#ifndef HAVE_ARCH_STRCMP
int strcmp(const char *s1, const char *s2);
#endif
#ifndef HAVE_ARCH_STRNCMP
int strncmp(const char *s1, const char *s2, size_t n);
#endif
#ifdef __cplusplus
}
#endif
#endif