]> git.ozlabs.org Git - ccan/blobdiff - ccan/autodata/_info
aga,agar: The Bellman-Ford algorithm
[ccan] / ccan / autodata / _info
index 11b6e16dcc183c0d093c6bed66ff71adc7b01f23..507de1a1ed9e2452a023872931f2a20a256d1def 100644 (file)
@@ -1,5 +1,6 @@
-#include <string.h>
 #include "config.h"
+#include <stdio.h>
+#include <string.h>
 
 /**
  * autodata - stash pointers in your binary for automatic registration
@@ -8,6 +9,9 @@
  * together at runtime to form tables.  This is often used in place of
  * having a central registration function or table.
  *
+ * Note that this technique does not work in general for shared libaries,
+ * only for code compiled into a binary.
+ *
  * License: BSD-MIT
  *
  * Example:
@@ -88,8 +92,8 @@
  *             printf("verbose mode on\n");
  *     return 0;
  * }
- * // Given -v outputs 'verbose mode on'
- * // Given -v -C / outputs 'chdir to /. verbose mode on'
+ * // Given "-v" outputs "verbose mode on\n"
+ * // Given "-v -C /" outputs "chdir to /. verbose mode on\n"
  */
 int main(int argc, char *argv[])
 {