_info 553 B

123456789101112131415161718192021222324252627282930
  1. #include "config.h"
  2. #include <stdio.h>
  3. #include <string.h>
  4. /**
  5. * mem - Provide mem*() functions if missing from C library
  6. *
  7. * This code implements some string.h mem*() functions if they're not
  8. * already available in the C library. Functions included are:
  9. * memmem()
  10. *
  11. * License: CC0
  12. */
  13. int main(int argc, char *argv[])
  14. {
  15. /* Expect exactly one argument */
  16. if (argc != 2)
  17. return 1;
  18. if (strcmp(argv[1], "depends") == 0) {
  19. return 0;
  20. }
  21. if (strcmp(argv[1], "testdepends") == 0) {
  22. printf("ccan/array_size");
  23. return 0;
  24. }
  25. return 1;
  26. }