please dont rip this site

Language Ccpp Cref Examples Uname.c

/ ************************************************************************
 *
 * 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/8 19:25,
TOP NEW HELP FIND: 
3.138.61.232:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/language/ccpp/cref/EXAMPLES/uname.c"> language ccpp cref EXAMPLES uname</A>

Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .