On Wed, Feb 18, 2009 at 11:00:30AM +0530, nidhi mittal wrote:
> hi
> a very small doubt may be to ask on forum .......
> 
> i wanted to user strlen in kernel module
>   for that i will have to include string.h
>   but as we know
> that is a user space library
>   so what shd i include to use strlen in kernel space
> 


Hi,

Don't worry, a lot of common string functions have been implemented in the 
kernel.
Just include <linux/string.h>

Also if you need to find the header file which matches a function prototype, 
just
go to the include directory and:

grep -r strlen *

Or even better if you have git: git-grep strlen


 
> 
> 
> -- 
> Thanks & Regards
> Nidhi


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to