strncmp.c 377 B

12345678910111213141516171819
  1. /*
  2. * Provide symbol in case str func is not inlined.
  3. *
  4. * Copyright (c) 2006-2007 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #define strncmp __inline_strncmp
  9. #include <asm/string.h>
  10. #undef strncmp
  11. #include <linux/module.h>
  12. int strncmp(const char *cs, const char *ct, size_t count)
  13. {
  14. return __inline_strncmp(cs, ct, count);
  15. }
  16. EXPORT_SYMBOL(strncmp);