root/ar5315_microredboot/microredboot/boot/src/lib/lib.c

Revision 12320, 452 bytes (checked in by BrainSlayer, 5 months ago)

AR5312/AR2323 support working now, 2 ap48 builds are included in the image folders. one was tested on a Alfa AP48, the second on a Senao EOC5610

Line 
1 /*
2  * lib.c
3  * copyright 2009 Sebastian Gottschall / NewMedia-NET GmbH / DD-WRT.COM
4  * licensed under GPL conditions
5  * this code is based on linux sources
6  */
7 #include <linux/kernel.h>
8
9 #include <asm/uaccess.h>
10
11 char *strchr(const char *s, int c)
12 {
13         for (; *s != (char)c; ++s)
14                 if (*s == '\0')
15                         return NULL;
16         return (char *)s;
17 }
18
19 size_t strlen(const char *s)
20 {
21         const char *sc;
22
23         for (sc = s; *sc != '\0'; ++sc)
24                 /* nothing */ ;
25         return sc - s;
26 }
Note: See TracBrowser for help on using the browser.