Read linux kernel version using C?

Posted by ipkiss on Stack Overflow See other posts from Stack Overflow or by ipkiss
Published on 2010-06-07T06:57:30Z Indexed on 2010/06/07 7:02 UTC
Read the original article Hit count: 263

Filed under:
|

Hi,

I am using Ubuntu and I want to read the version of its kernel. I found a file named version in /proc/ that records the version of the current kernel.

If I dont want to read file, is there any other way, like built-in function in C, that I can read the version in C?

Thanks

© Stack Overflow or respective owner

Related posts about c

    Related posts about kernel