From 8e2654541c6eae0f308908f501cccbc86b2f9101 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Wed, 4 Jan 2006 17:26:31 +0000 Subject: Moved scipy directory to numpy --- numpy/f2py/docs/usersguide/spam.pyf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 numpy/f2py/docs/usersguide/spam.pyf (limited to 'numpy/f2py/docs/usersguide/spam.pyf') diff --git a/numpy/f2py/docs/usersguide/spam.pyf b/numpy/f2py/docs/usersguide/spam.pyf new file mode 100644 index 000000000..21ea18b77 --- /dev/null +++ b/numpy/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 -- cgit v1.2.1