view PC/example_nt/example.c @ 49790:7aaa3affecc1

Fix minor typos.
author Raymond Hettinger <python@rcn.com>
date Fri, 21 Nov 2008 10:40:51 +0000
parents 19fd6141940d
children bd0e361bd642
line wrap: on
line source

#include "Python.h"

static PyObject *
ex_foo(PyObject *self, PyObject *args)
{
	printf("Hello, world\n");
	Py_INCREF(Py_None);
	return Py_None;
}

static PyMethodDef example_methods[] = {
	{"foo", ex_foo, METH_VARARGS, "foo() doc string"},
	{NULL, NULL}
};

PyMODINIT_FUNC
initexample(void)
{
	Py_InitModule("example", example_methods);
}