1: 
   2: #include "Clearinghouse2_defs.h"
   3: 
   4: main(argc,argv)
   5:     int argc;
   6:     char *argv[];
   7: {
   8:     Name pattern;
   9:     Name defaults;
  10:     Property property;
  11:     static printit();
  12:     extern Name CH_StringToName();
  13: 
  14: 
  15:     defaults.object = "*";
  16:     defaults.domain = "Computer Science";
  17:     defaults.organization = "Cornell-Univ";
  18: 
  19:     if (argc > 1) property = atoi(argv[1]);
  20:     if (argc > 2) pattern = CH_StringToName(argv[2],&defaults);
  21: 
  22:     printf("Property = %d, pattern = %s:%s:%s\n",
  23:             property,
  24:             pattern.object,pattern.domain,pattern.organization);
  25:     CH_Enumerate(pattern,property,printit);
  26: }
  27: 
  28: printit(name)
  29:     Name name;
  30: {
  31:     printf("\t%s:%s:%s\n", name.object, name.domain, name.organization);
  32: }

Defined functions

main defined in line 4; never used
printit defined in line 28; used 2 times
Last modified: 1986-03-13
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 835
Valid CSS Valid XHTML 1.0 Strict