summaryrefslogtreecommitdiff
path: root/scipy/f2py/docs/usersguide/spam.pyf
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2005-10-28 21:25:47 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2005-10-28 21:25:47 +0000
commit5dda00de77bbb5ec80deb350a95b5d7780c571b8 (patch)
tree1a017a7ce73b2aff22f2e92ba80a07f41d20542d /scipy/f2py/docs/usersguide/spam.pyf
parentb87a003a9205916b22abd5fa64580974a2df652a (diff)
downloadnumpy-5dda00de77bbb5ec80deb350a95b5d7780c571b8.tar.gz
Moved f2py2e to f2py.
Diffstat (limited to 'scipy/f2py/docs/usersguide/spam.pyf')
-rw-r--r--scipy/f2py/docs/usersguide/spam.pyf19
1 files changed, 19 insertions, 0 deletions
diff --git a/scipy/f2py/docs/usersguide/spam.pyf b/scipy/f2py/docs/usersguide/spam.pyf
new file mode 100644
index 000000000..21ea18b77
--- /dev/null
+++ b/scipy/f2py/docs/usersguide/spam.pyf
@@ -0,0 +1,19 @@
+! -*- f90 -*-
+python module spam
+ usercode '''
+ static char doc_spam_system[] = "Execute a shell command.";
+ static PyObject *spam_system(PyObject *self, PyObject *args)
+ {
+ char *command;
+ int sts;
+
+ if (!PyArg_ParseTuple(args, "s", &command))
+ return NULL;
+ sts = system(command);
+ return Py_BuildValue("i", sts);
+ }
+ '''
+ pymethoddef '''
+ {"system", spam_system, METH_VARARGS, doc_spam_system},
+ '''
+end python module spam