source: git/doc/sample_lib0.lib @ 538e06

spielwiese
Last change on this file since 538e06 was 75f460, checked in by Hans Schoenemann <hannes@…>, 9 years ago
format
  • Property mode set to 100644
File size: 544 bytes
Line 
1// example of a library
2  info="
3         LIBRARY: sample_lib0.lib
4  ";
5
6  proc dummy1(int i,  // parameter list can stretch across
7            int j)    // multiple lines
8  { return(string(i)+"+"+string(j)+"="+string(i+j)); }
9
10  proc dummy2(proc sum, int j, int k)
11        { return(sum(j,k)); }
12  /* { and } does not need to be the
13     first charater in line */
14
15  //////////////////////////
16  /*
17    LIB"sample_lib0.lib"; // some comments at the end
18    help sample_lib0.lib;
19    proc tt1=dummy1;
20    kill dummy1;
21    dummy2(tt1,2,3);
22  */
23
Note: See TracBrowser for help on using the repository browser.