views:

150

answers:

1

I need to convert an integer to it's ASCII representation from within the Linux Kernel. How can I do this? I can't find any built-in conversion methods. Are there any already in the kernel or do I need to add my own?

+2  A: 

The kernel does offer snprintf(), would that suit your need? I'm also curious what you are doing with the ASCII representation of an integer within the kernel.

Its very likely that you just want printk().

Tim Post
Yes, I was headed down the wrong path on this guys. Thanks for all the help. I realized I just wanted printk. First dive into kernel programming. Thanks!
DRX-Z