mirror of
https://github.com/siemens-mobile-hacks/sdk.git
synced 2026-11-25 22:27:39 +00:00
28 lines
728 B
C
28 lines
728 B
C
#ifndef _STRINGS_H
|
|
#define _STRINGS_H
|
|
|
|
#include <stddef.h>
|
|
#include <sys/cdefs.h>
|
|
#include <string.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
int strcasecmp(const char *s1, const char *s2) __THROW;
|
|
int strncasecmp(const char *s1, const char *s2, size_t n) __THROW;
|
|
int ffs(int i) __THROW __attribute__((__const__));
|
|
|
|
int bcmp(const void *, const void *, size_t) __THROW;
|
|
void bcopy(const void *, void *, size_t) __THROW;
|
|
// void bzero(void *, size_t) __THROW;
|
|
char *index(const char *, int) __THROW;
|
|
char *rindex(const char *, int) __THROW;
|
|
|
|
// #define bzero(s,n) memset(s,0,n)
|
|
#define bcopy(src,dest,n) memmove(dest,src,n)
|
|
#define bcmp(a,b,n) memcmp(a,b,n)
|
|
#define index(a,b) strchr(a,b)
|
|
#define rindex(a,b) strrchr(a,b)
|
|
|
|
__END_DECLS
|
|
|
|
#endif
|