struct.unpack null-terminated string

Xavier Defrang xavier at
Fri Aug 3 12:01:09 CEST 2001


How do I unpack a null-terminated string with the struct module?  I
couldn't find it in the lib reference... maybe do i have to upgrade my

Thanks in advance,

Xavier Defrang
Perceval R&D Team
xavier at

 Perceval Technologies SA/NV  Tel: +32-2-6409194
 Rue Tenbosch, 9              Fax: +32-2-6403154
 B-1000 Brussels
 BELGIUM                       info at

More information about the Python-list mailing list