libnfc/examples/doc
Philippe Teuwen bece73faaf Error conditions in utils & examples: fix leaks, unify style (see details)
* in main():
** errx()/err()/return -> exit()
** return values -> EXIT_SUCCESS & EXIT_FAILURE

* out of main:
** err()/errx()/exit() -> return
** change retval from size_t to int to allow returning errors
** don't use EXIT_SUCCESS / EXIT_FAILURE as retvals

* add nfc_close() & nfc_exit() to exit() on errors
* add missing fclose() on errors
* add missing test if (pnd == NULL)
* unify style if (pnd == / != NULL)
* remove goto's
* few related fixes
* remove if(pnd!=NULL) test on nfc_close() calls
2013-03-05 19:44:59 +01:00
..
quick_start_example1.c Error conditions in utils & examples: fix leaks, unify style (see details) 2013-03-05 19:44:59 +01:00
quick_start_example2.c Error conditions in utils & examples: fix leaks, unify style (see details) 2013-03-05 19:44:59 +01:00