static PyObject *
spam_system(PyObject *self, PyObject *args)
{
- char *command;
+ const char *command;
int sts;
if (!PyArg_ParseTuple(args, "s", &command))
int ok;
int i, j;
long k, l;
- char *s;
+ const char *s;
int size;
ok = PyArg_ParseTuple(args, ""); /* No arguments */
\begin{verbatim}
{
- char *file;
- char *mode = "r";
+ const char *file;
+ const char *mode = "r";
int bufsize = 0;
ok = PyArg_ParseTuple(args, "s|si", &file, &mode, &bufsize);
/* A string, and optionally another string and an integer */
\begin{verbatim}
static int
-PySpam_System(char *command)
+PySpam_System(const char *command)
{
return system(command);
}
static PyObject *
spam_system(PyObject *self, PyObject *args)
{
- char *command;
+ const char *command;
int sts;
if (!PyArg_ParseTuple(args, "s", &command))