About: Source:Hack 1.0/hack.whatis.c   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Below is the full text to hack.whatis.c from the source code of Hack 1.0. To link to a particular line, write [[Hack 1.0/hack.whatis.c#line123]], for example. Warning! This is the source code from an old release. For the latest release, see Source code

AttributesValues
rdfs:label
  • Source:Hack 1.0/hack.whatis.c
rdfs:comment
  • Below is the full text to hack.whatis.c from the source code of Hack 1.0. To link to a particular line, write [[Hack 1.0/hack.whatis.c#line123]], for example. Warning! This is the source code from an old release. For the latest release, see Source code
dcterms:subject
dbkwik:nethack/pro...iPageUsesTemplate
abstract
  • Below is the full text to hack.whatis.c from the source code of Hack 1.0. To link to a particular line, write [[Hack 1.0/hack.whatis.c#line123]], for example. Warning! This is the source code from an old release. For the latest release, see Source code 1. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */ 2. 3. #include 4. #include "hack.h" 5. 6. dowhatis(str) 7. register char *str; 8. { 9. FILE *fp; 10. char bufr[BUFSZ]; 11. register char *ep, q; 12. 13. pline("Specify what? "); 14. getlin(bufr); 15. str = bufr; 16. while(*str == ' ') str++; 17. q = *str; 18. if(*(str+1)) pline("One character please."); 19. else if(!(fp = fopen("data","r"))) pline("Cannot open data file!"); 20. else { 21. while(fgets(bufr,BUFSZ,fp)) 22. if(*bufr == q) { 23. ep = index(bufr, ' '); 24. if(ep) *ep = 0; 25. else impossible(); 26. pline(bufr); 27. if(ep[-1] == ';') morewhat(fp); 28. goto fnd; 29. } 30. pline("Unknown symbol."); 31. fnd: 32. (void) fclose(fp); 33. } 34. } 35. 36. morewhat(fp) FILE *fp; { 37. char bufr[BUFSZ]; 38. register char *ep; 39. pline("More info? "); 40. if(readchar() != 'y') return; 41. cls(); 42. while(fgets(bufr,BUFSZ,fp) && *bufr == ' '){ 43. ep = index(bufr, ' '); 44. if(!ep) break; 45. *ep = 0; 46. puts(bufr+1); 47. } 48. more(); 49. docrt(); 50. }
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software