view PC/example_nt/example.c @ 35467:dba1e2dfd8de 2.4

Patch #1168594: set sizes of non-regular files to zero. Fixes #1167128.
author Martin v. Löwis <martin@v.loewis.de>
date Sat, 27 Aug 2005 10:08:21 +0000
parents a1ce07218781
children 834fd9b3ceee
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, 1, "foo() doc string"},
	{NULL, NULL}
};

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