blob: 423c099aa988f6749e7c4a55479c4141b52ef818 [file] [log] [blame]
Robin Getz96f10502009-09-24 14:11:24 +00001/*
2 * Copyright 2004-2008 Analog Devices Inc.
3 *
4 * Licensed under the GPL-2 or later.
5 */
6
Bryan Wu1394f032007-05-06 14:50:22 -07007#ifndef _BLACKFIN_STRING_H_
8#define _BLACKFIN_STRING_H_
9
Mike Frysingerd0025e52007-11-21 15:34:51 +080010#include <linux/types.h>
11
Bryan Wu1394f032007-05-06 14:50:22 -070012#ifdef __KERNEL__ /* only set these up for kernel code */
13
14#define __HAVE_ARCH_STRCPY
Robin Getz479ba602010-05-03 17:23:20 +000015extern char *strcpy(char *dest, const char *src);
Bryan Wu1394f032007-05-06 14:50:22 -070016
17#define __HAVE_ARCH_STRNCPY
Robin Getz479ba602010-05-03 17:23:20 +000018extern char *strncpy(char *dest, const char *src, size_t n);
Bryan Wu1394f032007-05-06 14:50:22 -070019
20#define __HAVE_ARCH_STRCMP
Robin Getz479ba602010-05-03 17:23:20 +000021extern int strcmp(const char *cs, const char *ct);
Bryan Wu1394f032007-05-06 14:50:22 -070022
23#define __HAVE_ARCH_STRNCMP
Robin Getz479ba602010-05-03 17:23:20 +000024extern int strncmp(const char *cs, const char *ct, size_t count);
Bryan Wu1394f032007-05-06 14:50:22 -070025
26#define __HAVE_ARCH_MEMSET
27extern void *memset(void *s, int c, size_t count);
28#define __HAVE_ARCH_MEMCPY
29extern void *memcpy(void *d, const void *s, size_t count);
30#define __HAVE_ARCH_MEMCMP
31extern int memcmp(const void *, const void *, __kernel_size_t);
32#define __HAVE_ARCH_MEMCHR
33extern void *memchr(const void *s, int c, size_t n);
34#define __HAVE_ARCH_MEMMOVE
35extern void *memmove(void *dest, const void *src, size_t count);
36
37#endif /*__KERNEL__*/
38#endif /* _BLACKFIN_STRING_H_ */