fork download
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<unistd.h>
  4. #include<sys/utsname.h>
  5.  
  6. int main(){
  7. struct utsname s;
  8. uname(&s);
  9. printf("%s\n",s.sysname);
  10. printf("%s\n",s.nodename);
  11. printf("%s\n",s.release);
  12. printf("%s\n",s.version);
  13. printf("%s\n",s.machine);
  14. }
Runtime error #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
Linux
checker
2.6.34
#6 SMP Fri Jan 21 15:21:52 CET 2011
i686