[Pxlib-devel] Small bug in example code in documentation
Brought to you by:
steinm
From: Nicholas D. <Nic...@ls...> - 2022-06-14 08:18:39
|
Dear pxlib developers, Thanks for making this library, I have found it helpful in trying to access some files for a research project. The large block of example code from the overview in the documentation showing how to read fields sequentially from a database file was helpful, but it has a bug in it. The lines offset += pxf->px_flen; pxf++; near the end of the code snippet should be moved before the closing brace that immediately precedes those two lines, otherwise instead of reading a database as e.g. A B C D E F G H I , the field pointer does not get advanced within each record, and the code will instead read A A A D D D G G G . Thanks Nick |