]> git.ozlabs.org Git - ccan/blobdiff - ccan/build_assert/_info.c
ccanlint clean and move endian.h to top of #includes (tests that it doesn't need...
[ccan] / ccan / build_assert / _info.c
index b61aeee0e41f00a244c48f5f9b58464702d6defd..d2fe3d9c80fc240daf4cef1e3b8b9113e4a152df 100644 (file)
  * you would catch such changes in your code like so:
  *
  * Example:
+ *     #include <stddef.h>
+ *     #include <ccan/build_assert/build_assert.h>
+ *
+ *     struct foo {
+ *             char string[5];
+ *             int x;
+ *     };
+ *
  *     char *foo_string(struct foo *foo)
  *     {
  *             // This trick requires that the string be first in the structure