_info 475 B

12345678910111213141516171819202122232425262728
  1. #include <string.h>
  2. #include "config.h"
  3. /**
  4. * memmem - Trivial module providing a memmem() implementation
  5. *
  6. * This code implements memmem() if it's not alreayd available in the
  7. * C library.
  8. *
  9. * License: CC0
  10. */
  11. int main(int argc, char *argv[])
  12. {
  13. /* Expect exactly one argument */
  14. if (argc != 2)
  15. return 1;
  16. if (strcmp(argv[1], "depends") == 0) {
  17. return 0;
  18. }
  19. if (strcmp(argv[1], "testdepends") == 0) {
  20. printf("ccan/array_size");
  21. return 0;
  22. }
  23. return 1;
  24. }