From 63548f5664e0e149f5e51219ad6f582f985e3c42 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Thu, 14 Jul 2011 12:48:00 +0200 Subject: documentation updates --- doc/src/examples/nl_cb_set.c | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 doc/src/examples/nl_cb_set.c (limited to 'doc/src/examples/nl_cb_set.c') diff --git a/doc/src/examples/nl_cb_set.c b/doc/src/examples/nl_cb_set.c deleted file mode 100644 index 4fbaefc..0000000 --- a/doc/src/examples/nl_cb_set.c +++ /dev/null @@ -1,14 +0,0 @@ -#include - -/* Allocate a callback set and initialize it to the verbose default set */ -struct nl_cb *cb = nl_cb_alloc(NL_CB_VERBOSE); - -/* Modify the set to call my_func() for all valid messages */ -nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, my_func, NULL); - -/* - * Set the error message handler to the verbose default implementation - * and direct it to print all errors to the given file descriptor. - */ -FILE *file = fopen(...); -nl_cb_err(cb, NL_CB_VERBOSE, NULL, file); -- cgit v1.2.1