s1 199 core/lib_thumb.c char *strstr(const char *s1, const char *s2) s1 201 core/lib_thumb.c const char *p = s1; s1 121 include/lolevel.h extern int _strcmp(const char *s1, const char *s2); s1 122 include/lolevel.h extern int _strncmp(const char *s1, const char *s2, long n); s1 156 include/lolevel.h extern int _memcmp(const void *s1, const void *s2, long n); s1 12 include/std/string.h extern int strcmp(const char *s1, const char *s2); s1 13 include/std/string.h extern int strncmp(const char *s1, const char *s2, long n); s1 24 include/std/string.h extern int memcmp(const void *s1, const void *s2, long n); s1 96 lib/lua/lbaselib.c const char *s1 = luaL_checkstring(L, 1); s1 100 lib/lua/lbaselib.c n = strtoul(s1, &s2, base); s1 101 lib/lua/lbaselib.c if (s1 != s2) { /* at least one valid digit? */ s1 444 lib/lua/lstrlib.c static const char *lmemfind (const char *s1, size_t l1, s1 446 lib/lua/lstrlib.c if (l2 == 0) return s1; /* empty strings are everywhere */ s1 452 lib/lua/lstrlib.c while (l1 > 0 && (init = (const char *)memchr(s1, *s2, l1)) != NULL) { s1 457 lib/lua/lstrlib.c l1 -= init-s1; s1 458 lib/lua/lstrlib.c s1 = init; s1 515 lib/lua/lstrlib.c const char *s1=s+init; s1 522 lib/lua/lstrlib.c if ((res=match(&ms, s1, p)) != NULL) { s1 524 lib/lua/lstrlib.c lua_pushinteger(L, s1-s+1); /* start */ s1 529 lib/lua/lstrlib.c return push_captures(&ms, s1, res); s1 531 lib/lua/lstrlib.c } while (s1++ < ms.src_end && !anchor); s1 271 modules/file_shelter.c int strcasecmp(const char *s1, const char *s2) s1 273 modules/file_shelter.c const unsigned char *p1 = (const unsigned char *) s1; s1 150 modules/module_load.c static int namecmp(const char* s1, const char* s2) s1 152 modules/module_load.c if ((s1 == 0) && (s2 == 0)) return 1; // Both null --> equal s1 153 modules/module_load.c if ((s1 == 0) || (s2 == 0)) return 0; // One null (but not both) --> not equal s1 154 modules/module_load.c while (*s1 && *s2) s1 156 modules/module_load.c if (tolower(*s1) != tolower(*s2)) return 0; s1 157 modules/module_load.c s1++; s1 160 modules/module_load.c return ((*s1 == 0) && (*s2 == 0)); s1 100 platform/generic/main.c static int my_ncmp(const char *s1, const char *s2, long len) s1 104 platform/generic/main.c if (s1[i] != s2[i]) s1 855 platform/generic/wrappers.c int strcmp(const char *s1, const char *s2) { s1 856 platform/generic/wrappers.c return _strcmp(s1, s2); s1 859 platform/generic/wrappers.c int strncmp(const char *s1, const char *s2, long n) { s1 860 platform/generic/wrappers.c return _strncmp(s1, s2, n); s1 1099 platform/generic/wrappers.c int memcmp(const void *s1, const void *s2, long n) { s1 1100 platform/generic/wrappers.c return _memcmp(s1, s2, n); s1 90 platform/ixus30_sd200/main.c static int my_ncmp(const char *s1, const char *s2, long len) s1 95 platform/ixus30_sd200/main.c if (s1[i] != s2[i]) s1 92 platform/ixus40_sd300/main.c static int my_ncmp(const char *s1, const char *s2, long len) s1 97 platform/ixus40_sd300/main.c if (s1[i] != s2[i]) s1 88 platform/ixus50_sd400/main.c static int my_ncmp(const char *s1, const char *s2, long len) s1 92 platform/ixus50_sd400/main.c if (s1[i] != s2[i]) s1 88 platform/ixus700_sd500/main.c static int my_ncmp(const char *s1, const char *s2, long len) s1 92 platform/ixus700_sd500/main.c if (s1[i] != s2[i]) s1 89 platform/s2is/main.c static int my_ncmp(const char *s1, const char *s2, long len) s1 93 platform/s2is/main.c if (s1[i] != s2[i]) s1 103 platform/s80/main.c static int my_ncmp(const char *s1, const char *s2, long len) s1 107 platform/s80/main.c if (s1[i] != s2[i]) s1 1633 tools/finsig_dryos.c int s1 = find_str(fw,"Size: %ld"); s1 1636 tools/finsig_dryos.c if ((s1 < 0)||(s2 < 0)||(f1 < 0)) s1 1638 tools/finsig_dryos.c if (s1 < s2-16) // the two strings should be close s1 1639 tools/finsig_dryos.c s1 = find_Nth_str(fw,"Size: %ld",2); // this string has multiple instances, try the next one s1 1642 tools/finsig_dryos.c int r1 = find_nxt_str_ref(fw, s1, 0); s1 1664 tools/finsig_dryos.c r1 = find_nxt_str_ref(fw, s1, r1+1); s1 1676 tools/finsig_dryos.c int s1 = find_str(fw,"ErrorMessageController.c"); s1 1678 tools/finsig_dryos.c if (s1 < 0) s1 1679 tools/finsig_dryos.c s1 = find_str(fw,"MessageController.c"); s1 1684 tools/finsig_dryos.c if ((j>=0)&&(s1>=0)&&(s2>=0)) s1 1696 tools/finsig_dryos.c k = find_nxt_str_ref(fw, s1, m2); s1 1718 tools/finsig_dryos.c k = find_nxt_str_ref(fw, s1, m2); s1 1732 tools/finsig_dryos.c k = find_nxt_str_ref(fw, s1, m2); s1 1738 tools/finsig_dryos.c k = find_nxt_str_ref(fw, s1, m2); s1 2355 tools/finsig_dryos.c int s1 = find_nxt_str_ref(fw, sadr, -1/*fw->lowest_idx*/); s1 2357 tools/finsig_dryos.c while (s1 >= 0) s1 2361 tools/finsig_dryos.c hist[0] = s1; s1 2367 tools/finsig_dryos.c for (n=s1+1; n<s1+26; n++) s1 2376 tools/finsig_dryos.c k = find_inst(fw, isBL, s1+2, 6); s1 2410 tools/finsig_dryos.c s1 = find_nxt_str_ref(fw, sadr, s1+1); s1 4502 tools/finsig_dryos.c int s1 = find_str_ref(fw, "CameraLog.c"); s1 4503 tools/finsig_dryos.c if (s1 < 0) s1 4505 tools/finsig_dryos.c int k = isADR_PC_cond(fw, s1); s1 4508 tools/finsig_dryos.c k = fwRd(fw, s1); s1 1016 tools/finsig_vxworks.c int s1 = find_str(fw, "FileSem.c"); s1 1017 tools/finsig_vxworks.c if (s1 < 0) s1 1019 tools/finsig_vxworks.c s1 = find_inst(fw, isLDR_PC, s1+2, 16); s1 1020 tools/finsig_vxworks.c if (s1 < 0) s1 1022 tools/finsig_vxworks.c s1 = find_inst_rev(fw, isSTMFD_LR, s1-1, 16); s1 1023 tools/finsig_vxworks.c if (s1 < 0) s1 1025 tools/finsig_vxworks.c fwAddMatch(fw,idx2adr(fw,s1),32,0,122); s1 1433 tools/finsig_vxworks.c int s1 = find_nxt_str_ref(fw, sadr, -1/*fw->lowest_idx*/); s1 1435 tools/finsig_vxworks.c while (s1 >= 0) s1 1439 tools/finsig_vxworks.c hist[0] = s1; s1 1445 tools/finsig_vxworks.c for (n=s1+1; n<s1+26; n++) s1 1454 tools/finsig_vxworks.c k = find_inst(fw, isBL, s1+2, 6); s1 1481 tools/finsig_vxworks.c s1 = find_nxt_str_ref(fw, sadr, s1+1); s1 3556 tools/finsig_vxworks.c int s1 = find_str(fw, "FileSem.c"); s1 3557 tools/finsig_vxworks.c if (s1 < 0) s1 3559 tools/finsig_vxworks.c s1 = find_inst(fw, isLDR_PC, s1+2, 16); s1 3560 tools/finsig_vxworks.c if (s1 < 0) s1 3562 tools/finsig_vxworks.c uint32_t u1 = LDR2val(fw, s1); s1 3565 tools/finsig_vxworks.c print_stubs_min(fw,"fileio_semaphore",u1,idx2adr(fw,s1)); s1 3573 tools/finsig_vxworks.c int s1 = find_str_ref(fw, "Memory.c"); s1 3574 tools/finsig_vxworks.c if (s1 < 0) s1 3576 tools/finsig_vxworks.c int k = isLDR_PC(fw, s1); s1 3579 tools/finsig_vxworks.c k = fwRd(fw, s1); s1 142 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int strcmp(const char *s1, const char *s2); s1 143 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int strncmp(const char *s1, const char *s2, int n); s1 177 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int memcmp(const void *s1, const void *s2, int n); s1 510 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int strstr(const char *s1, const char *s2); s1 160 tools/packfi2/zutil.c int zmemcmp(s1, s2, len) s1 161 tools/packfi2/zutil.c const Bytef* s1; s1 168 tools/packfi2/zutil.c if (s1[j] != s2[j]) return 2*(s1[j] > s2[j])-1; s1 236 tools/packfi2/zutil.h extern int zmemcmp OF((const Bytef* s1, const Bytef* s2, uInt len));