How do I converted a null (0) terminated string to a Python string?
george.sakkis at gmail.com
Fri Sep 15 22:03:21 CEST 2006
> Thanks to you and everyone else for the help. The "s.split('\x00',
> 1) " solved the problem.
And a probably faster version: s[:s.index('\x00')]
More information about the Python-list