Subversion Repositories HelenOS-historic

Rev

Rev 999 | Rev 1197 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 999 Rev 1173
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#include <types.h>
-
 
30
#include <string.h>
29
#include <string.h>
31
 
30
 
32
/* Dummy implementation of mem/ functions */
31
/* Dummy implementation of mem/ functions */
33
 
32
 
34
void * memset(void *s, int c, size_t n)
33
void * memset(void *s, int c, size_t n)
Line 45... Line 44...
45
    char *odst = dest;
44
    char *odst = dest;
46
    while (n--)
45
    while (n--)
47
        *(odst++) = *(os++);
46
        *(odst++) = *(os++);
48
    return dest;
47
    return dest;
49
}
48
}
-
 
49
 
-
 
50
size_t strlen(const char *str)
-
 
51
{
-
 
52
    int counter = 0;
-
 
53
 
-
 
54
    while (str[counter] != 0) {
-
 
55
        counter++;
-
 
56
    }
-
 
57
 
-
 
58
    return counter;
-
 
59
}