source: git/doc/sample_lib0.lib @ 9feb899

spielwiese
Last change on this file since 9feb899 was 3d9807, checked in by Anne Frühbis-Krüger <anne@…>, 26 years ago
*Anne: created sample_lib0.lib because it is no longer generated automatically git-svn-id: file:///usr/local/Singular/svn/trunk@1697 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 546 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.