Gerhard Häring wrote:
> char* buf = strdup(s);
> if (!buf) {
> PyErr_SetString(PyExc_MemoryError, "Out of memory: strdup failed");
> return NULL;
> }
>
> /* TODO: your string manipulation */Don't forget to free(buf). ;) Christian -- http://mail.python.org/mailman/listinfo/python-list
