summaryrefslogtreecommitdiffstats
path: root/debian/pyrex/pyrex-0.9.9/Demos/callback/cheesefinder.c
diff options
context:
space:
mode:
Diffstat (limited to 'debian/pyrex/pyrex-0.9.9/Demos/callback/cheesefinder.c')
-rw-r--r--debian/pyrex/pyrex-0.9.9/Demos/callback/cheesefinder.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/debian/pyrex/pyrex-0.9.9/Demos/callback/cheesefinder.c b/debian/pyrex/pyrex-0.9.9/Demos/callback/cheesefinder.c
deleted file mode 100644
index ab41853b..00000000
--- a/debian/pyrex/pyrex-0.9.9/Demos/callback/cheesefinder.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * An example of a C API that provides a callback mechanism.
- */
-
-#include "cheesefinder.h"
-
-static char *cheeses[] = {
- "cheddar",
- "camembert",
- "that runny one",
- 0
-};
-
-void find_cheeses(cheesefunc user_func, void *user_data) {
- char **p = cheeses;
- while (*p) {
- user_func(*p, user_data);
- ++p;
- }
-}
-