/dports/shells/ksh2020/ast-ksh2020/src/lib/libast/tests/ |
H A D | strtoi.tst | 10 strtoul "0" "" 0 OK 17 strtoul "-0" "" 0 OK 24 strtoul "+0" "" 0 OK 31 strtoul "00" "" 0 OK 38 strtoul "-00" "" 0 OK 45 strtoul "+00" "" 0 OK 382 strtoul "-" "-" 0 OK 389 strtoul "+" "+" 0 OK 671 strtoul "0" "" 0 OK 678 strtoul "-0" "" 0 OK [all …]
|
/dports/devel/emscripten/emscripten-2.0.3/tests/core/ |
H A D | test_parseInt.out | 26 strtoul("-2147483649") = 2147483647 31 strtoul("-2147483648") = 2147483648 36 strtoul("-2147483647") = 2147483649 41 strtoul("-5") = 4294967291 46 strtoul("-1") = 4294967295 51 strtoul("0") = 0 56 strtoul("1") = 1 61 strtoul("5") = 5 66 strtoul("2147483646") = 2147483646 71 strtoul("2147483647") = 2147483647 [all …]
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/libc/test/src/stdlib/ |
H A D | strtoul_test.cpp | 20 ASSERT_EQ(__llvm_libc::strtoul(ten, nullptr, -1), 0ul); in TEST() 29 ASSERT_EQ(__llvm_libc::strtoul(ten, &str_end, 10), 10ul); in TEST() 33 ASSERT_EQ(__llvm_libc::strtoul(ten, nullptr, 10), 10ul); in TEST() 38 ASSERT_EQ(__llvm_libc::strtoul(hundred, &str_end, 10), 100ul); in TEST() 44 ASSERT_EQ(__llvm_libc::strtoul(negative, &str_end, 10), -(100ul)); in TEST() 93 ASSERT_EQ(__llvm_libc::strtoul(word_before, &str_end, 10), 0ul); in TEST() 99 ASSERT_EQ(__llvm_libc::strtoul(word_after, &str_end, 10), 10ul); in TEST() 111 ASSERT_EQ(__llvm_libc::strtoul(two_signs, &str_end, 10), 0ul); in TEST() 117 ASSERT_EQ(__llvm_libc::strtoul(sign_before, &str_end, 10), 2ul); in TEST() 123 ASSERT_EQ(__llvm_libc::strtoul(sign_after, &str_end, 10), 2ul); in TEST() [all …]
|
/dports/converters/p5-Convert-Binary-C/Convert-Binary-C-0.84/tests/include/pdclib/functions/stdlib/ |
H A D | strtoul.c | 52 TESTCASE( strtoul( "123", NULL, 10 ) == 123 ); in main() 54 TESTCASE( strtoul( "456", NULL, 0 ) == 456 ); in main() 56 TESTCASE( strtoul( "14", NULL, 8 ) == 12 ); in main() 58 TESTCASE( strtoul( "016", NULL, 0 ) == 14 ); in main() 60 TESTCASE( strtoul( "0xFF", NULL, 0 ) == 255 ); in main() 62 TESTCASE( strtoul( "0Xa1", NULL, 0 ) == 161 ); in main() 64 TESTCASE( strtoul( tricky, &endptr, 0 ) == 0 ); in main() 67 TESTCASE( strtoul( tricky, &endptr, 8 ) == 0 ); in main() 72 TESTCASE( strtoul( "0", &endptr, 0 ) == 0 ); in main() 87 TESTCASE( strtoul( overflow, &endptr, 10 ) == 0 ); in main() [all …]
|
/dports/emulators/qemu42/qemu-4.2.1/roms/skiboot/libc/test/ |
H A D | run-stdlib.c | 67 assert(strtoul("0", NULL, 10) == 0); in main() 68 assert(strtoul("1", NULL, 10) == 1); in main() 70 assert(strtoul("-72", NULL, 10) == 0); in main() 73 assert(strtoul(buf, NULL, 10) == 42); in main() 78 assert(strtoul("0x800", NULL, 0) == 0x800); in main() 79 assert(strtoul("0x0x800", NULL, 0) == 0); in main() 82 assert(strtoul("z", NULL, -1) == 0); in main() 83 assert(strtoul("11111", NULL, 1) == 0); in main() 84 assert(strtoul("z", NULL, 37) == 0); in main() 85 assert(strtoul("z", NULL, 36) == 35); in main() [all …]
|
/dports/emulators/qemu5/qemu-5.2.0/roms/skiboot/libc/test/ |
H A D | run-stdlib.c | 67 assert(strtoul("0", NULL, 10) == 0); in main() 68 assert(strtoul("1", NULL, 10) == 1); in main() 70 assert(strtoul("-72", NULL, 10) == 0); in main() 73 assert(strtoul(buf, NULL, 10) == 42); in main() 78 assert(strtoul("0x800", NULL, 0) == 0x800); in main() 79 assert(strtoul("0x0x800", NULL, 0) == 0); in main() 82 assert(strtoul("z", NULL, -1) == 0); in main() 83 assert(strtoul("11111", NULL, 1) == 0); in main() 84 assert(strtoul("z", NULL, 37) == 0); in main() 85 assert(strtoul("z", NULL, 36) == 35); in main() [all …]
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/roms/skiboot/libc/test/ |
H A D | run-stdlib.c | 67 assert(strtoul("0", NULL, 10) == 0); in main() 68 assert(strtoul("1", NULL, 10) == 1); in main() 70 assert(strtoul("-72", NULL, 10) == 0); in main() 73 assert(strtoul(buf, NULL, 10) == 42); in main() 78 assert(strtoul("0x800", NULL, 0) == 0x800); in main() 79 assert(strtoul("0x0x800", NULL, 0) == 0); in main() 82 assert(strtoul("z", NULL, -1) == 0); in main() 83 assert(strtoul("11111", NULL, 1) == 0); in main() 84 assert(strtoul("z", NULL, 37) == 0); in main() 85 assert(strtoul("z", NULL, 36) == 35); in main() [all …]
|
/dports/emulators/qemu-utils/qemu-4.2.1/roms/skiboot/libc/test/ |
H A D | run-stdlib.c | 67 assert(strtoul("0", NULL, 10) == 0); in main() 68 assert(strtoul("1", NULL, 10) == 1); in main() 70 assert(strtoul("-72", NULL, 10) == 0); in main() 73 assert(strtoul(buf, NULL, 10) == 42); in main() 78 assert(strtoul("0x800", NULL, 0) == 0x800); in main() 79 assert(strtoul("0x0x800", NULL, 0) == 0); in main() 82 assert(strtoul("z", NULL, -1) == 0); in main() 83 assert(strtoul("11111", NULL, 1) == 0); in main() 84 assert(strtoul("z", NULL, 37) == 0); in main() 85 assert(strtoul("z", NULL, 36) == 35); in main() [all …]
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/skiboot/libc/test/ |
H A D | run-stdlib.c | 67 assert(strtoul("0", NULL, 10) == 0); in main() 68 assert(strtoul("1", NULL, 10) == 1); in main() 70 assert(strtoul("-72", NULL, 10) == 0); in main() 73 assert(strtoul(buf, NULL, 10) == 42); in main() 78 assert(strtoul("0x800", NULL, 0) == 0x800); in main() 79 assert(strtoul("0x0x800", NULL, 0) == 0); in main() 82 assert(strtoul("z", NULL, -1) == 0); in main() 83 assert(strtoul("11111", NULL, 1) == 0); in main() 84 assert(strtoul("z", NULL, 37) == 0); in main() 85 assert(strtoul("z", NULL, 36) == 35); in main() [all …]
|
/dports/emulators/qemu/qemu-6.2.0/roms/skiboot/libc/test/ |
H A D | run-stdlib.c | 56 assert(strtoul("0", NULL, 10) == 0); in main() 57 assert(strtoul("1", NULL, 10) == 1); in main() 59 assert(strtoul("-72", NULL, 10) == 0); in main() 62 assert(strtoul(buf, NULL, 10) == 42); in main() 67 assert(strtoul("0x800", NULL, 0) == 0x800); in main() 68 assert(strtoul("0x0x800", NULL, 0) == 0); in main() 71 assert(strtoul("z", NULL, -1) == 0); in main() 72 assert(strtoul("11111", NULL, 1) == 0); in main() 73 assert(strtoul("z", NULL, 37) == 0); in main() 74 assert(strtoul("z", NULL, 36) == 35); in main() [all …]
|
/dports/emulators/qemu60/qemu-6.0.0/roms/skiboot/libc/test/ |
H A D | run-stdlib.c | 67 assert(strtoul("0", NULL, 10) == 0); in main() 68 assert(strtoul("1", NULL, 10) == 1); in main() 70 assert(strtoul("-72", NULL, 10) == 0); in main() 73 assert(strtoul(buf, NULL, 10) == 42); in main() 78 assert(strtoul("0x800", NULL, 0) == 0x800); in main() 79 assert(strtoul("0x0x800", NULL, 0) == 0); in main() 82 assert(strtoul("z", NULL, -1) == 0); in main() 83 assert(strtoul("11111", NULL, 1) == 0); in main() 84 assert(strtoul("z", NULL, 37) == 0); in main() 85 assert(strtoul("z", NULL, 36) == 35); in main() [all …]
|
/dports/security/pkcs11-tools/pkcs11-tools-2.5.0/.gnulib/tests/ |
H A D | test-strtoul.c | 22 #ifndef strtoul 39 result = strtoul (input, &ptr, 10); in main() 49 result = strtoul (input, &ptr, 10); in main() 59 result = strtoul (input, &ptr, 10); in main() 69 result = strtoul (input, &ptr, 10); in main() 81 result = strtoul (input, &ptr, 10); in main() 91 result = strtoul (input, &ptr, 10); in main() 101 result = strtoul (input, &ptr, 10); in main() 111 result = strtoul (input, &ptr, 10); in main() 121 result = strtoul (input, &ptr, 10); in main() [all …]
|
/dports/net/rdesktop/rdesktop-1.9.0/ |
H A D | seamless.c | 85 id = strtoul(tok3, &endptr, 0); in seamless_process_line() 89 group = strtoul(tok4, &endptr, 0); in seamless_process_line() 97 flags = strtoul(tok6, &endptr, 0); in seamless_process_line() 108 id = strtoul(tok3, &endptr, 0); in seamless_process_line() 124 id = strtoul(tok3, &endptr, 0); in seamless_process_line() 142 id = strtoul(tok3, &endptr, 0); in seamless_process_line() 188 id = strtoul(tok3, &endptr, 0); in seamless_process_line() 209 id = strtoul(tok3, &endptr, 0); in seamless_process_line() 237 id = strtoul(tok3, &endptr, 0); in seamless_process_line() 256 id = strtoul(tok3, &endptr, 0); in seamless_process_line() [all …]
|
/dports/devel/gettext-tools/gettext-0.21/gettext-tools/gnulib-tests/ |
H A D | test-strtoul.c | 22 #ifndef strtoul 39 result = strtoul (input, &ptr, 10); in main() 49 result = strtoul (input, &ptr, 10); in main() 59 result = strtoul (input, &ptr, 10); in main() 69 result = strtoul (input, &ptr, 10); in main() 81 result = strtoul (input, &ptr, 10); in main() 91 result = strtoul (input, &ptr, 10); in main() 101 result = strtoul (input, &ptr, 10); in main() 111 result = strtoul (input, &ptr, 10); in main() 121 result = strtoul (input, &ptr, 10); in main() [all …]
|
/dports/devel/gnulib/gnulib-20140202-stable/tests/ |
H A D | test-strtoul.c | 22 #ifndef strtoul 39 result = strtoul (input, &ptr, 10); in main() 49 result = strtoul (input, &ptr, 10); in main() 59 result = strtoul (input, &ptr, 10); in main() 69 result = strtoul (input, &ptr, 10); in main() 81 result = strtoul (input, &ptr, 10); in main() 91 result = strtoul (input, &ptr, 10); in main() 101 result = strtoul (input, &ptr, 10); in main() 111 result = strtoul (input, &ptr, 10); in main() 121 result = strtoul (input, &ptr, 10); in main() [all …]
|
/dports/devel/gettext-po-mode/gettext-0.21/gettext-tools/gnulib-tests/ |
H A D | test-strtoul.c | 22 #ifndef strtoul 39 result = strtoul (input, &ptr, 10); in main() 49 result = strtoul (input, &ptr, 10); in main() 59 result = strtoul (input, &ptr, 10); in main() 69 result = strtoul (input, &ptr, 10); in main() 81 result = strtoul (input, &ptr, 10); in main() 91 result = strtoul (input, &ptr, 10); in main() 101 result = strtoul (input, &ptr, 10); in main() 111 result = strtoul (input, &ptr, 10); in main() 121 result = strtoul (input, &ptr, 10); in main() [all …]
|
/dports/devel/gettext-runtime/gettext-0.21/gettext-tools/gnulib-tests/ |
H A D | test-strtoul.c | 22 #ifndef strtoul 39 result = strtoul (input, &ptr, 10); in main() 49 result = strtoul (input, &ptr, 10); in main() 59 result = strtoul (input, &ptr, 10); in main() 69 result = strtoul (input, &ptr, 10); in main() 81 result = strtoul (input, &ptr, 10); in main() 91 result = strtoul (input, &ptr, 10); in main() 101 result = strtoul (input, &ptr, 10); in main() 111 result = strtoul (input, &ptr, 10); in main() 121 result = strtoul (input, &ptr, 10); in main() [all …]
|
/dports/devel/libtextstyle/gettext-0.21/gettext-tools/gnulib-tests/ |
H A D | test-strtoul.c | 22 #ifndef strtoul 39 result = strtoul (input, &ptr, 10); in main() 49 result = strtoul (input, &ptr, 10); in main() 59 result = strtoul (input, &ptr, 10); in main() 69 result = strtoul (input, &ptr, 10); in main() 81 result = strtoul (input, &ptr, 10); in main() 91 result = strtoul (input, &ptr, 10); in main() 101 result = strtoul (input, &ptr, 10); in main() 111 result = strtoul (input, &ptr, 10); in main() 121 result = strtoul (input, &ptr, 10); in main() [all …]
|
/dports/sysutils/wmmemload/dockapps/src/ |
H A D | mem_linux.c | 123 mtotal = strtoul(p, &p, 0); p = skip_multiple_token(p, 2); in mem_getusage() 124 mfree = strtoul(p, &p, 0); p = skip_multiple_token(p, 5); in mem_getusage() 125 mbuffer = strtoul(p, &p, 0); p = skip_multiple_token(p, 2); in mem_getusage() 126 mcached = strtoul(p, &p, 0); p = skip_multiple_token(p, 2); in mem_getusage() 127 scached = strtoul(p, &p, 0); in mem_getusage() 133 mtotal = strtoul(p, &p, 0); p = skip_multiple_token(p, 2); in mem_getusage() 137 scached = strtoul(p, &p, 0); in mem_getusage() 144 mfree = strtoul(p, &p, 0); in mem_getusage() 148 scached = strtoul(p, &p, 0); in mem_getusage() 162 stotal = strtoul(p, &p, 0); p = skip_multiple_token(p, 2); in mem_getusage() [all …]
|
/dports/lang/sdcc/sdcc-4.0.0/support/regression/tests/ |
H A D | strto.c | 24 ASSERT(strtoul("", 0, 10) == 0); in testStrto() 25 ASSERT(strtoul("2", 0, 10) == 2); in testStrto() 26 ASSERT(strtoul("3", 0, 10) == 3); in testStrto() 27 ASSERT(strtoul("23", 0, 10) == 23); in testStrto() 29 ASSERT(strtoul("23", 0, 0) == 23); in testStrto() 30 ASSERT(strtoul("023", 0, 0) == 023); in testStrto() 31 ASSERT(strtoul("0x23", 0, 0) == 0x23); in testStrto() 33 ASSERT(strtoul("+23", 0, 0) == +23); in testStrto() 34 ASSERT(strtoul("+023", 0, 0) == +023); in testStrto() 35 ASSERT(strtoul("+0x23", 0, 0) == +0x23); in testStrto() [all …]
|
/dports/shells/ksh93-devel/ast-cc1bca27/src/cmd/dsslib/netflow/ |
H A D | flow-flat.c | 108 rp->input = strtoul(b, &a, 10); in flatread() 111 rp->output = strtoul(a, &b, 10); in flatread() 114 rp->packets = strtoul(b, &a, 10); in flatread() 117 rp->bytes = strtoul(a, &b, 10); in flatread() 120 rp->first = strtoul(b, &a, 10); in flatread() 123 rp->last = strtoul(a, &b, 10); in flatread() 126 rp->src_port = strtoul(b, &a, 10); in flatread() 129 rp->dst_port = strtoul(a, &b, 10); in flatread() 132 rp->flags = strtoul(b, &a, 10); in flatread() 138 rp->protocol = strtoul(b, &a, 10); in flatread() [all …]
|
/dports/shells/ksh93/ast-93u/src/cmd/dsslib/netflow/ |
H A D | flow-flat.c | 108 rp->input = strtoul(b, &a, 10); in flatread() 111 rp->output = strtoul(a, &b, 10); in flatread() 114 rp->packets = strtoul(b, &a, 10); in flatread() 117 rp->bytes = strtoul(a, &b, 10); in flatread() 120 rp->first = strtoul(b, &a, 10); in flatread() 123 rp->last = strtoul(a, &b, 10); in flatread() 126 rp->src_port = strtoul(b, &a, 10); in flatread() 129 rp->dst_port = strtoul(a, &b, 10); in flatread() 132 rp->flags = strtoul(b, &a, 10); in flatread() 138 rp->protocol = strtoul(b, &a, 10); in flatread() [all …]
|
/dports/shells/ast-ksh/ast-ksh93v/src/cmd/dsslib/netflow/ |
H A D | flow-flat.c | 108 rp->input = strtoul(b, &a, 10); in flatread() 111 rp->output = strtoul(a, &b, 10); in flatread() 114 rp->packets = strtoul(b, &a, 10); in flatread() 117 rp->bytes = strtoul(a, &b, 10); in flatread() 120 rp->first = strtoul(b, &a, 10); in flatread() 123 rp->last = strtoul(a, &b, 10); in flatread() 126 rp->src_port = strtoul(b, &a, 10); in flatread() 129 rp->dst_port = strtoul(a, &b, 10); in flatread() 132 rp->flags = strtoul(b, &a, 10); in flatread() 138 rp->protocol = strtoul(b, &a, 10); in flatread() [all …]
|
/dports/dns/dnscap/dnscap-2.0.1/src/ |
H A D | options.c | 73 s = strtoul(argument, &p, 0); in option_parse() 79 s = strtoul(argument, &p, 0); in option_parse() 85 s = strtoul(argument, &p, 0); in option_parse() 91 s = strtoul(argument, &p, 0); in option_parse() 97 s = strtoul(argument, &p, 0); in option_parse() 108 s = strtoul(argument, &p, 0); in option_parse() 119 s = strtoul(argument, &p, 0); in option_parse() 125 s = strtoul(argument, &p, 0); in option_parse() 156 s = strtoul(argument, &p, 0); in option_parse() 172 s = strtoul(argument, &p, 0); in option_parse() [all …]
|
/dports/devel/pickle/pickle-4.20/src/ |
H A D | dotconf.c | 206 p.busy = strtoul(&line[5], NULL, 0); in getconf() 209 p.vpp = strtoul(&line[4], NULL, 0); in getconf() 212 p.pgm = strtoul(&line[4], NULL, 0); in getconf() 215 p.pgc = strtoul(&line[4], NULL, 0); in getconf() 218 p.pgdi = strtoul(&line[4], NULL, 0); in getconf() 222 p.pgdo = strtoul(&line[5], NULL, 0); in getconf() 225 p.pgdi = strtoul(&line[5], NULL, 0); in getconf() 231 p.mcp = strtoul(&line[4], NULL, 0); in getconf() 237 p.debug = strtoul(&line[6], NULL, 0); in getconf() 243 p.config = strtoul(&line[7], NULL, 0); in getconf() [all …]
|