lwIP provides default implementations for non-standard functions. These can be mapped to OS functions to reduce code footprint if desired. All defines related to this section must not be placed in lwipopts.h, but in arch/cc.h! These options cannot be #defined in lwipopts.h since they are not options of lwIP itself, but options of the lwIP port to your system.
◆ lwip_itoa()
lwIP default implementation for itoa() non-standard function. This can be #defined to itoa() or snprintf(result, bufsize, "%d", number) depending on your platform port.
Definition at line 222 of file def.c.
223{
227
228
232 }
233 return;
234 }
235
236
239 }
240
241
242 *tmp = 0;
243 while ((
n != 0) && (tmp >
res)) {
245 tmp--;
248 }
250
252 return;
253 }
254 if (*tmp == 0) {
255
258 return;
259 }
260
262}
GLenum GLuint GLsizei bufsize
#define memmove(s1, s2, n)
static unsigned int number
Referenced by file_write_http_header(), netif_index_to_name(), and test_def_itoa().
◆ lwip_stricmp()
lwIP default implementation for stricmp() non-standard function. This can be #defined to stricmp() depending on your platform port.
Definition at line 151 of file def.c.
152{
153 char c1, c2;
154
155 do {
156 c1 = *str1++;
157 c2 = *str2++;
158 if (c1 != c2) {
159 char c1_upc = c1 | 0x20;
160 if ((c1_upc >= 'a') && (c1_upc <= 'z')) {
161
162
163 char c2_upc = c2 | 0x20;
164 if (c1_upc != c2_upc) {
165
166
167 return 1;
168 }
169 } else {
170
171 return 1;
172 }
173 }
174 } while (c1 != 0);
175 return 0;
176}
◆ lwip_strnicmp()
lwIP default implementation for strnicmp() non-standard function. This can be #defined to strnicmp() depending on your platform port.
Definition at line 186 of file def.c.
187{
188 char c1, c2;
189
190 do {
191 c1 = *str1++;
192 c2 = *str2++;
193 if (c1 != c2) {
194 char c1_upc = c1 | 0x20;
195 if ((c1_upc >= 'a') && (c1_upc <= 'z')) {
196
197
198 char c2_upc = c2 | 0x20;
199 if (c1_upc != c2_upc) {
200
201
202 return 1;
203 }
204 } else {
205
206 return 1;
207 }
208 }
210 }
while ((
len != 0) && (c1 != 0));
211 return 0;
212}
Referenced by lwip_strnistr().
◆ lwip_strnistr()
lwIP default implementation for strnistr() non-standard function. This can be #defined to strnistr() depending on your platform port.
Definition at line 128 of file def.c.
129{
132 if (tokenlen == 0) {
134 }
138 }
139 }
141}
ACPI_SIZE strlen(const char *String)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat token
#define LWIP_CONST_CAST(target_type, val)
int lwip_strnicmp(const char *str1, const char *str2, size_t len)
◆ lwip_strnstr()
lwIP default implementation for strnstr() non-standard function. This can be #defined to strnstr() depending on your platform port.
Definition at line 105 of file def.c.
106{
109 if (tokenlen == 0) {
111 }
115 }
116 }
118}
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)