1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

doc: link to example code; testPsyc: moved interesting code to the top

This commit is contained in:
tg(x) 2011-05-15 22:48:51 +02:00
parent b6b4ce87e1
commit 852731d30a
3 changed files with 81 additions and 62 deletions

View file

@ -58,11 +58,14 @@
* the according positions and lengths.
*
* Now the real parsing begins. The parsing function needs to be called
* repeatedly with various actions in between, depending on the return values:
* repeatedly with various actions in between, depending on the return values.
*
* A simplified example follows, see test/testPsyc.c for actual code that
* handles incomplete packets too.
*
* @code
*
* int res;
* int ret;
*
* do // run the parsing in a loop, each time parsing one line
* {