sli.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __SLI_H__
00017 #define __SLI_H__
00018
00019
00041 #define HAVE_STRING_H 0
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #if HAVE_STRING_H
00056
00057 #include <string.h>
00058
00059 #define sli_memcpy(to, from, n) memcpy((to), (from), (n))
00060 #define sli_strcmp(s1, s2) strcmp((s1),(s2))
00061 #define sli_strlen(s) strlen(s)
00062 #define sli_strncmp(s1, s2, n) strncmp((s1),(s2),(n))
00063
00064 #else
00065
00075 void *sli_memcpy(unsigned char *, unsigned char const *, unsigned int);
00076
00086 int sli_strcmp(char const *, char const *);
00087
00094 int sli_strlen(char const *s);
00095
00106 int sli_strncmp(char const *s1, char const *s2, unsigned int n);
00107
00108 #endif
00109
00119 void sli_memset(unsigned char *dest, const char val, unsigned int n);
00120
00121 #endif