source: trunk/sys/dietlibc/include/strings.h @ 372

Last change on this file since 372 was 1, checked in by alain, 8 years ago

First import

File size: 417 bytes
RevLine 
[1]1#ifndef _STRINGS_H
2#define _STRINGS_H
3
4#include <stddef.h>
5#include <stdint.h>
6
7int strcasecmp(const char *s1, const char *s2);
8int strncasecmp(const char *s1, const char *s2, size_t n);
9int ffs(int i) __attribute__((__const__));
10
11
12#define bzero(s,n) memset(s,0,n)
13#define bcopy(src,dest,n) memmove(dest,src,n)
14#define bcmp(a,b,n) memcmp(a,b,n)
15#define index(a,b) strchr(a,b)
16#define rindex(a,b) strrchr(a,b)
17
18#endif
Note: See TracBrowser for help on using the repository browser.