Linux Kernel - Integer to ASCII
I need to convert an integer to it's ASCII representation from within the Linux Kernel. How开发者_如何学Go 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?
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.
It's very likely that you just want printk()
.
精彩评论