1 /* -*- linux-c -*- ------------------------------------------------------- *
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 * Copyright 2007 rPath, Inc. - All Rights Reserved
6 * This file is part of the Linux kernel, and is made available under
7 * the terms of the GNU General Public License version 2.
9 * ----------------------------------------------------------------------- */
12 * arch/i386/boot/string.c
14 * Very basic string functions
19 int strcmp(const char *str1, const char *str2)
21 const unsigned char *s1 = (const unsigned char *)str1;
22 const unsigned char *s2 = (const unsigned char *)str2;
35 size_t strnlen(const char *s, size_t maxlen)
38 while (*es && maxlen) {
46 unsigned int atou(const char *s)
50 i = i * 10 + (*s++ - '0');