Searched refs:strncmp (Results 1 - 25 of 255) sorted by relevance

1234567891011

/haiku/src/bin/
H A Ddraggers.cpp34 if (!strncmp(argv[i], "-h", 2)) {
38 || !strncmp(argv[i], "en", 2)
39 || !strncmp(argv[i], "sh", 2)
40 || !strncmp(argv[i], "on", 2))
43 || !strncmp(argv[i], "di", 2)
44 || !strncmp(argv[i], "hi", 2)
45 || !strncmp(argv[i], "of", 2))
H A Dmkindex.cpp133 if (strncmp("int", optarg, 3) == 0)
135 else if (strncmp("llong", optarg, 5) == 0)
137 else if (strncmp("string", optarg, 6) == 0)
139 else if (strncmp("float", optarg, 5) == 0)
141 else if (strncmp("double", optarg, 6) == 0)
H A Dprintenv.c59 if (!strncmp(s, arg, len)) {
H A Drelease.c40 if (strncmp(argv[i], "-f", 2) == 0) {
42 } else if (strncmp(argv[i], "-c", 2) == 0) {
H A Dfortune.c144 if (!strncmp(buffer + i, "\n%\n", 3)) {
161 if (!strncmp(buffer + i, "\n%\n", 3)) {
/haiku/src/system/libroot/posix/string/
H A Dstrncmp.c11 strncmp(char const *a, char const *b, size_t count) function
H A Dstrstr.c18 if (strncmp(s1, s2, s2len) == 0)
/haiku/src/tests/system/libroot/posix/string/
H A Dcompare_test.cpp19 printf("strncmp(): %d\n", strncmp(a, b, 1));
/haiku/src/tests/system/libroot/posix/
H A Dtst-wprintf2.c73 strncmp(buf, "test start int 3", len) == 0 ? "OK" : "FAIL");
74 res |= strncmp(buf, "test start int 3", len) != 0;
86 strncmp(buf, "1[ Som]", len) == 0 ? "OK" : "FAIL");
87 res |= strncmp(buf, "1[ Som]", len) != 0;
99 strncmp(buf, "hello.", len) == 0 ? "OK" : "FAIL");
100 res |= strncmp(buf, "hello.", len) != 0;
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DSuperBlock.cpp19 if (strncmp(signature1, CHECK_SUM_FS_SIGNATURE_1,
21 || strncmp(signature2, CHECK_SUM_FS_SIGNATURE_2,
/haiku/src/tests/servers/registrar/
H A Drun_test_registrar.cpp45 if (!strncmp(teamInfo.args, "/boot/beos/", 11)
46 || !strncmp(teamInfo.args, "/boot/system/", 13)) {
93 if (!strncmp(currentPath.Path(), registrarPath, generatedPath - registrarPath)) {
/haiku/src/system/kernel/arch/arm/
H A Darch_debug_console.cpp108 if (strncmp(args->arch_args.uart.kind, UART_KIND_PL011,
112 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250_OMAP,
116 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250,
H A Darch_timer.cpp62 } else if (strncmp(args->arch_args.timer.kind, TIMER_KIND_OMAP3,
66 } else if (strncmp(args->arch_args.timer.kind, TIMER_KIND_PXA,
/haiku/src/system/kernel/arch/arm64/
H A Darch_debug_console.cpp101 if (strncmp(args->arch_args.uart.kind, UART_KIND_PL011,
105 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_LINFLEX,
109 }/* else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250_OMAP,
113 }*/ else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250,
/haiku/src/system/libroot/posix/musl/misc/
H A Dgetsubopt.c16 if (strncmp(keys[i], s, l)) continue;
/haiku/src/system/kernel/arch/riscv64/
H A Darch_debug_console.cpp106 if (strncmp(args->arch_args.uart.kind, UART_KIND_8250,
110 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_SIFIVE,
/haiku/src/system/libroot/posix/glibc/extensions/
H A Dgetopt_init.c59 it before calling strncmp. */
64 && __builtin_expect (strncmp (*ep + 1, cp, len) == 0, 0))
/haiku/src/servers/power/
H A Dpower_button_monitor.cpp36 if (strncmp(ref.name, "power", 5) == 0) {
/haiku/src/system/boot/platform/efi/
H A Dacpi.cpp101 && strncmp(rsdt->signature, ACPI_XSDT_SIGNATURE, 4) != 0) {
117 if (strncmp(rsdt->signature, ACPI_RSDT_SIGNATURE, 4) != 0) {
172 if (header != NULL && strncmp(header->signature, signature, 4) == 0) {
218 if (strncmp((char *)rsdp, ACPI_RSDP_SIGNATURE, 8) == 0)
/haiku/src/tests/kits/support/bmemoryio/
H A DWriteTest.cpp42 CPPUNIT_ASSERT(strncmp(buf + 3, writeBuf, 2) == 0);
50 CPPUNIT_ASSERT(strncmp(buf + 9, writeBuf, 1) == 0);
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_init.c323 (!strncmp(line, name, sizeof(name) - 1) && \
553 if (!strncmp(cp, "ndots:", sizeof("ndots:") - 1)) {
563 } else if (!strncmp(cp, "timeout:", sizeof("timeout:") - 1)) {
574 } else if (!strncmp(cp, "retrans:", sizeof("retrans:") - 1)) {
581 } else if (!strncmp(cp, "retry:", sizeof("retry:") - 1)){
589 } else if (!strncmp(cp, "attempts:", sizeof("attempts:") - 1)){
599 } else if (!strncmp(cp, "debug", sizeof("debug") - 1)) {
608 } else if (!strncmp(cp, "no_tld_query",
610 !strncmp(cp, "no-tld-query",
613 } else if (!strncmp(c
[all...]
/haiku/src/bin/network/telnet/
H A Dmain.c142 rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE;
338 if (!strncmp("in", optarg, 2))
340 else if (!strncmp("out", optarg, 3))
/haiku/src/bin/desklink/
H A Ddesklink.cpp84 if (strncmp(argv[i], "--remove", 8) == 0) {
86 if (strncmp(argv[i] + 8, "=", 1) == 0) {
109 if (strncmp(argv[i], "cmd=", 4) == 0) {
/haiku/src/tests/system/kernel/
H A Dadvisory_locking_test.cpp94 return command1 != NULL && !strncmp(op, command1, length)
95 || command2 != NULL && !strncmp(op, command2, length);
/haiku/src/add-ons/input_server/filters/shortcut_catcher/
H A DCommandActuators.cpp490 if (strncmp(s, "shift",5) == 0)
492 else if (strncmp(s, "leftsh", 6) == 0)
494 else if (strncmp(s, "rightsh",7) == 0)
496 else if (strncmp(s, "alt",3) == 0)
498 else if (strncmp(s, "leftalt",7) == 0)
500 else if (strncmp(s, "rightalt", 8) == 0)
502 else if (strncmp(s, "com",3) == 0)
504 else if (strncmp(s, "leftcom",7) == 0)
506 else if (strncmp(s, "rightcom", 8) == 0)
508 else if (strncmp(
[all...]

Completed in 503 milliseconds

1234567891011