Initial revision.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@364 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-04-03 14:28:59 +00:00
commit e0e54b762a
5 changed files with 97 additions and 0 deletions

View file

@ -0,0 +1,21 @@
/* Simple example from documentation */
/* File : example.c */
#include </usr/include/time.h>
double My_variable = 3.0;
int fact(int n) {
if (n <= 1) return 1;
else return n*fact(n-1);
}
int mod(int n, int m) {
return (n % m);
}
char *get_time() {
long ltime;
time(&ltime);
return ctime(&ltime);
}