Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am new to kernel programming. I need to convert a string of characters into its decimal equivalent . Any information will be very helpful. Thanks, Shashi...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    9

    Convert a string of characters into an integer


    Hi,

    I am new to kernel programming. I need to convert a string of characters into its decimal equivalent . Any information will be very helpful.

    Thanks,
    Shashi

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Try googling simple_strtol...its a kernel function to convert strings to integers...Hope this helps..Gerard4143

    Here's a web site:

    simple_strtol(9) | KernelTrap

    and for other functions:

    KernelTrap

Posting Permissions

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