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 09:52, local time: 2024/4/24 22:46,
TOP NEW HELP FIND: 
3.137.218.230: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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.massmind.org/techref/language/ccpp/cref/EXAMPLES/uname.c"> language ccpp cref EXAMPLES uname</A>

Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to www.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .