swig/swigweb/tutorial/example_wrap_tcl.html
Dave Beazley 45b51a07f8 Initial revision
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@444 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-17 02:21:07 +00:00

36 lines
684 B
HTML
Executable file

<HTML>
<HEAD>
<TITLE>
Simple Example</TITLE>
<BODY BGCOLOR="#ffffff">
<H1>Simple Example</H1>
<HR><H1> Contents </H1>
<UL><LI> <A HREF="#s1_">1. My Commands</A>
</UL>
<A name="s1_">
<HR><H2>1. My Commands</H2></A>
<P><TT><B>$My_variable</B></TT>
<BLOCKQUOTE>[ Global : double My_variable ]
<BR> This is an interesting variable
</BLOCKQUOTE>
<P><TT><B>fact n </B></TT>
<BLOCKQUOTE>[ returns int ]
<BR> Computes n factorial
</BLOCKQUOTE>
<P><TT><B>my_mod x y </B></TT>
<BLOCKQUOTE>[ returns int ]
<BR> Calculates x % y
</BLOCKQUOTE>
<P><TT><B>get_time </B></TT>
<BLOCKQUOTE>[ returns char * ]
<BR> Returns the current time as a string
</BLOCKQUOTE>
</BODY>
</HTML>