/* This file has a native Python wrapper function in it.
   We'll use SWIG to add it */

#include "Python.h"

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);
}




syntax highlighted by Code2HTML, v. 0.9.1