开发者

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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜