开发者

Linux Kernel - Integer to ASCII

开发者 https://www.devze.com 2022-12-24 04:55 出处:网络
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 k

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

精彩评论

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

关注公众号