[Pxlib-devel] Error in pxlib documentation (example code)
Brought to you by:
steinm
From: CZIRKOS Z. <cz...@ee...> - 2012-09-09 09:05:38
|
Hi The pxlib documentation at http://pxlib.sourceforge.net/documentation.php?manpage=pxlib has the following example code for reading the fields: ... case pxfBytes: // .. break; default: break; } } offset += pxf->px_flen; pxf++; } else { fprintf(stderr, _("Couldn't get record number %d\n"), j); } ... however, the } above the offset += line is the } of the for () of the fields, and not the switch (). so the example code should read: case pxfBytes: // .. break; default: break; } // switch (field type) offset += pxf->px_flen; pxf++; } // for (fields) } else { fprintf(stderr, _("Couldn't get record number %d\n"), j); } Thanks for the library, and also for pxview! CZ. |