Mercurial > cpython-lru_cache-weakref
view Modules/cryptmodule.c @ 7278:59d2761ba1cf legacy-trunk
Remove obsolete pagenumbering / pagestyle cruft.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 13 Feb 1998 07:08:56 +0000 |
| parents | 8d909ae1f099 |
| children | 38023a425e48 |
line wrap: on
line source
/* cryptmodule.c - by Steve Majewski */ #include "Python.h" #include <sys/types.h> /* Module crypt */ static PyObject *crypt_crypt(self, args) PyObject *self, *args; { char *word, *salt; extern char * crypt(); if (!PyArg_Parse(args, "(ss)", &word, &salt)) { return NULL; } return PyString_FromString( crypt( word, salt ) ); } static PyMethodDef crypt_methods[] = { {"crypt", crypt_crypt}, {NULL, NULL} /* sentinel */ }; void initcrypt() { Py_InitModule("crypt", crypt_methods); }
