March 28, 2024, 04:51:52 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: How to Computer name and Kernel Version while programming in C?  (Read 3518 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.