November 22, 2024, 02:57:02 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: How to Computer name and Kernel Version while programming in C?  (Read 5796 times)

Offline Beginer

  • New Member
  • Posts: 2
How to Computer name and Kernel Version while programming in C?
« on: February 09, 2009, 09:09:53 AM »
There are two questions:
Is there a way to get the "Computer Name" by programming in C?
Can we get version of the Linux Kernel with the help of C language and using gcc compiler?

Do we need to have use some system call oe there is some other way.