Results 1 to 2 of 2
i am doing this read/ write operation for a driver module program. In that program, i have to change the integer into char so that i can print it through ...
- 02-22-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 13
need a function
i am doing this read/ write operation for a driver module program. In that program, i have to change the integer into char so that i can print it through copy_to_user function. so i need a function for doing this.(similar to itoa in C programming).
i am using linux kernel functions. so i need a kernel function for performing this operation.
can anyone tell me a function for doing this.
- 02-23-2009 #2Just Joined!
- Join Date
- Feb 2009
- Posts
- 13
i got the function. it is simple_strtol() which converts a string into an integer.... and it is the snprintf() which does the reverse operation...


Reply With Quote