[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-newbie
Subject: Re: String Functions in Linux Kernel
From: Chandrabhanu Mahapatra <chandrabhanu.anand () gmail ! com>
Date: 2011-09-23 8:56:20
Message-ID: CAOG7oKxsBYC4f1QJemaa5XrEqwM5JuYsaL9QjB_UOoV_cSpWCQ () mail ! gmail ! com
[Download RAW message or body]
#include<string.h> actually refers to /usr/include/string.h present on
the system whereas
#include<linux/string.h> refers to
/usr/src/linux-headers-2.6.35-22-generic/include/linux/string.h if
your linux kernel version is 2.6.535.22 or to corresponding kernel
directory you have targeted the compiler to.
linux/string.h contains functions optimized for kernel but I still
dont understand why does it still include string.h.
On Fri, Sep 23, 2011 at 11:21 AM, Chandrabhanu Mahapatra
<chandrabhanu.anand@gmail.com> wrote:
> Is it safe to use string.h functions in kernel which are mostly user
> level functions.
> What is the difference when I write
> #include<string.h>
> and
> #include<linux/string.h>
> Where does each of the above point to in the linux kernel directory?
> In Linux-3.0/include/linux/string.h I found an entry for
> #include<string.h>
> What does the above exactly mean?
> Are there string safe function present in linux as like in windows driver model?
>
> --
> Chandrabhanu Mahapatra
>
--
Chandrabhanu Mahapatra
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic