Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    13

    Post 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.

  2. #2
    Just 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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...