/ ************************************************************************ * * Description: Try out the 'uname' function. * Author: M.J. Leslie * Date: 28-12-94 * ************************************************************************/ #include <sys/utsname.h> /* Header for 'uname' */ main() { struct utsname uname_pointer; uname(&uname_pointer); printf("System name - %s \n", uname_pointer.sysname); printf("Nodename - %s \n", uname_pointer.nodename); printf("Release - %s \n", uname_pointer.release); printf("Version - %s \n", uname_pointer.version); printf("Machine - %s \n", uname_pointer.machine); printf("Domain name - %s \n", uname_pointer.domainname); } /*********************************************************************** * * system name - Linux * Nodename - norma2 * Release - 1.1.54 * Version - #5 Sat Dec 3 15:08:21 GMT 1994 * Machine - i486 * Domain name - (none) * ***********************************************************************/
file: /Techref/language/ccpp/Cref/EXAMPLES/uname.c, 1KB, , updated: 1997/4/21 08:52, local time: 2024/11/27 04:27,
13.59.205.182:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/language/ccpp/Cref/EXAMPLES/uname.c"> language ccpp Cref EXAMPLES uname</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.