85 #if BYTE_ORDER == LITTLE_ENDIAN 87 #if !defined(lwip_htons) 97 return (u16_t)PP_HTONS(n);
101 #if !defined(lwip_htonl) 111 return (u32_t)PP_HTONL(n);
127 size_t tokenlen = strlen(token);
131 for (p = buffer; *p && (p + tokenlen <= buffer + n); p++) {
132 if ((*p == *token) && (strncmp(p, token, tokenlen) == 0)) {
155 char c1_upc = c1 | 0x20;
156 if ((c1_upc >=
'a') && (c1_upc <=
'z')) {
159 char c2_upc = c2 | 0x20;
160 if (c1_upc != c2_upc) {
175 #ifndef lwip_strnicmp 190 char c1_upc = c1 | 0x20;
191 if ((c1_upc >=
'a') && (c1_upc <=
'z')) {
194 char c2_upc = c2 | 0x20;
195 if (c1_upc != c2_upc) {
205 }
while (len-- && c1 != 0);
220 char* ptr = result, *ptr1 = result, tmp_char;
227 *ptr++ =
"zyxwvutsrqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz"[35 + (tmp_value - number * base)];
void lwip_itoa(char *result, size_t bufsize, int number)
char * lwip_strnstr(const char *buffer, const char *token, size_t n)
int lwip_stricmp(const char *str1, const char *str2)
#define LWIP_UNUSED_ARG(x)
#define LWIP_CONST_CAST(target_type, val)
int lwip_strnicmp(const char *str1, const char *str2, size_t len)