Home
last modified time | relevance | path

Searched refs:strtol (Results 1 – 25 of 10197) sorted by relevance

12345678910>>...408

/dports/devel/emscripten/emscripten-2.0.3/tests/core/
H A Dtest_parseInt.out39 strtol("-5") = -5
44 strtol("-1") = -1
49 strtol("0") = 0
54 strtol("1") = 1
59 strtol("5") = 5
124 strtol("0x12", 0, 0) = 18
125 strtol("0x12", 0, 10) = 0
126 strtol("012", 0, 0) = 10
127 strtol("012", 0, 10) = 12
128 strtol("0y12", 0, 0) = 0
[all …]
H A Dtest_parseInt.c44 printf("strtol(\"%s\") = %ld\n", test_values[i], strtol(test_values[i], 0, 0)); in main()
55 printf("strtol(\"0x12\", 0, 0) = %ld\n", strtol("0x12", 0, 0)); in main()
56 printf("strtol(\"0x12\", 0, 10) = %ld\n", strtol("0x12", 0, 10)); in main()
57 printf("strtol(\"012\", 0, 0) = %ld\n", strtol("012", 0, 0)); in main()
58 printf("strtol(\"012\", 0, 10) = %ld\n", strtol("012", 0, 10)); in main()
59 printf("strtol(\"0y12\", 0, 0) = %ld\n", strtol("0y12", 0, 0)); in main()
60 printf("strtol(\"hello\", 0, 30) = %ld\n", strtol("hello", 0, 30)); in main()
61 printf("strtol(\"hello\", 0, 10) = %ld\n", strtol("hello", 0, 10)); in main()
62 printf("strtol(\"not-a-number\") = %ld\n", strtol("not-a-number", 0, 0)); in main()
66 printf("strtol(\" 0x12end\") = %ld\n", strtol(str, &endptr, 0)); in main()
/dports/shells/ksh2020/ast-ksh2020/src/lib/libast/tests/
H A Dstrtoi.tst15 strtol "-0" "" 0 OK
22 strtol "+0" "" 0 OK
29 strtol "00" "" 0 OK
36 strtol "-00" "" 0 OK
43 strtol "+00" "" 0 OK
387 strtol "+" "+" 0 OK
394 strtol "0x" "x" 0 OK
460 strtol "1k" "k" 1 OK
676 strtol "-0" "" 0 OK
683 strtol "+0" "" 0 OK
[all …]
/dports/converters/p5-Convert-Binary-C/Convert-Binary-C-0.84/tests/include/pdclib/functions/stdlib/
H A Dstrtol.c14 long int strtol( const char * s, char ** endptr, int base ) in strtol() function
59 TESTCASE( strtol( "123", NULL, 10 ) == 123 ); in main()
61 TESTCASE( strtol( "456", NULL, 0 ) == 456 ); in main()
63 TESTCASE( strtol( "14", NULL, 8 ) == 12 ); in main()
65 TESTCASE( strtol( "016", NULL, 0 ) == 14 ); in main()
67 TESTCASE( strtol( "0xFF", NULL, 0 ) == 255 ); in main()
69 TESTCASE( strtol( "0Xa1", NULL, 0 ) == 161 ); in main()
71 TESTCASE( strtol( tricky, &endptr, 0 ) == 0 ); in main()
74 TESTCASE( strtol( tricky, &endptr, 8 ) == 0 ); in main()
79 TESTCASE( strtol( "0", &endptr, 0 ) == 0 ); in main()
[all …]
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/libc/test/src/stdlib/
H A Dstrtol_test.cpp20 ASSERT_EQ(__llvm_libc::strtol(ten, nullptr, -1), 0l); in TEST()
29 ASSERT_EQ(__llvm_libc::strtol(ten, &str_end, 10), 10l); in TEST()
34 ASSERT_EQ(__llvm_libc::strtol(ten, nullptr, 10), 10l); in TEST()
39 ASSERT_EQ(__llvm_libc::strtol(hundred, &str_end, 10), 100l); in TEST()
45 ASSERT_EQ(__llvm_libc::strtol(negative, &str_end, 10), -100l); in TEST()
101 ASSERT_EQ(__llvm_libc::strtol(word_before, &str_end, 10), 0l); in TEST()
107 ASSERT_EQ(__llvm_libc::strtol(word_after, &str_end, 10), 10l); in TEST()
119 ASSERT_EQ(__llvm_libc::strtol(two_signs, &str_end, 10), 0l); in TEST()
125 ASSERT_EQ(__llvm_libc::strtol(sign_before, &str_end, 10), 2l); in TEST()
131 ASSERT_EQ(__llvm_libc::strtol(sign_after, &str_end, 10), 2l); in TEST()
[all …]
/dports/security/pkcs11-tools/pkcs11-tools-2.5.0/.gnulib/tests/
H A Dtest-strtol.c22 #ifndef strtol
39 result = strtol (input, &ptr, 10); in main()
49 result = strtol (input, &ptr, 10); in main()
59 result = strtol (input, &ptr, 10); in main()
69 result = strtol (input, &ptr, 10); in main()
81 result = strtol (input, &ptr, 10); in main()
91 result = strtol (input, &ptr, 10); in main()
101 result = strtol (input, &ptr, 10); in main()
111 result = strtol (input, &ptr, 10); in main()
121 result = strtol (input, &ptr, 10); in main()
[all …]
/dports/benchmarks/libmicro/libMicro-0.4.1/
H A Dstrtol.c53 (void) strtol("1", NULL, 10); in benchmark()
54 (void) strtol("11", NULL, 10); in benchmark()
55 (void) strtol("123", NULL, 10); in benchmark()
56 (void) strtol("1234", NULL, 10); in benchmark()
57 (void) strtol("12345", NULL, 10); in benchmark()
58 (void) strtol("123456", NULL, 10); in benchmark()
59 (void) strtol("1234567", NULL, 10); in benchmark()
60 (void) strtol("12345678", NULL, 10); in benchmark()
61 (void) strtol("123456789", NULL, 10); in benchmark()
62 (void) strtol("1234567890", NULL, 10); in benchmark()
/dports/devel/gettext-tools/gettext-0.21/gettext-tools/gnulib-tests/
H A Dtest-strtol.c22 #ifndef strtol
39 result = strtol (input, &ptr, 10); in main()
49 result = strtol (input, &ptr, 10); in main()
59 result = strtol (input, &ptr, 10); in main()
69 result = strtol (input, &ptr, 10); in main()
81 result = strtol (input, &ptr, 10); in main()
91 result = strtol (input, &ptr, 10); in main()
101 result = strtol (input, &ptr, 10); in main()
111 result = strtol (input, &ptr, 10); in main()
121 result = strtol (input, &ptr, 10); in main()
[all …]
/dports/devel/gnulib/gnulib-20140202-stable/tests/
H A Dtest-strtol.c22 #ifndef strtol
39 result = strtol (input, &ptr, 10); in main()
49 result = strtol (input, &ptr, 10); in main()
59 result = strtol (input, &ptr, 10); in main()
69 result = strtol (input, &ptr, 10); in main()
81 result = strtol (input, &ptr, 10); in main()
91 result = strtol (input, &ptr, 10); in main()
101 result = strtol (input, &ptr, 10); in main()
111 result = strtol (input, &ptr, 10); in main()
121 result = strtol (input, &ptr, 10); in main()
[all …]
/dports/devel/gettext-runtime/gettext-0.21/gettext-tools/gnulib-tests/
H A Dtest-strtol.c22 #ifndef strtol
39 result = strtol (input, &ptr, 10); in main()
49 result = strtol (input, &ptr, 10); in main()
59 result = strtol (input, &ptr, 10); in main()
69 result = strtol (input, &ptr, 10); in main()
81 result = strtol (input, &ptr, 10); in main()
91 result = strtol (input, &ptr, 10); in main()
101 result = strtol (input, &ptr, 10); in main()
111 result = strtol (input, &ptr, 10); in main()
121 result = strtol (input, &ptr, 10); in main()
[all …]
/dports/devel/gettext-po-mode/gettext-0.21/gettext-tools/gnulib-tests/
H A Dtest-strtol.c22 #ifndef strtol
39 result = strtol (input, &ptr, 10); in main()
49 result = strtol (input, &ptr, 10); in main()
59 result = strtol (input, &ptr, 10); in main()
69 result = strtol (input, &ptr, 10); in main()
81 result = strtol (input, &ptr, 10); in main()
91 result = strtol (input, &ptr, 10); in main()
101 result = strtol (input, &ptr, 10); in main()
111 result = strtol (input, &ptr, 10); in main()
121 result = strtol (input, &ptr, 10); in main()
[all …]
/dports/devel/libtextstyle/gettext-0.21/gettext-tools/gnulib-tests/
H A Dtest-strtol.c22 #ifndef strtol
39 result = strtol (input, &ptr, 10); in main()
49 result = strtol (input, &ptr, 10); in main()
59 result = strtol (input, &ptr, 10); in main()
69 result = strtol (input, &ptr, 10); in main()
81 result = strtol (input, &ptr, 10); in main()
91 result = strtol (input, &ptr, 10); in main()
101 result = strtol (input, &ptr, 10); in main()
111 result = strtol (input, &ptr, 10); in main()
121 result = strtol (input, &ptr, 10); in main()
[all …]
/dports/print/ttfautohint/ttfautohint-1.8.4/gnulib/src/
H A Dstrtol.c54 # undef strtol
86 # undef strtol
89 # define strtol wcstoull macro
91 # define strtol wcstoul macro
95 # define strtol strtoull macro
97 # define strtol strtoul macro
102 # undef strtol
104 # define strtol wcstoll macro
106 # define strtol wcstol macro
110 # undef strtol
[all …]
/dports/editors/emacs-devel/emacs-4d1968b/lib/
H A Dstrtol.c54 # undef strtol
86 # undef strtol
89 # define strtol wcstoull macro
91 # define strtol wcstoul macro
95 # define strtol strtoull macro
97 # define strtol strtoul macro
102 # undef strtol
104 # define strtol wcstoll macro
106 # define strtol wcstol macro
110 # undef strtol
[all …]
/dports/security/pkcs11-tools/pkcs11-tools-2.5.0/.gnulib/lib/
H A Dstrtol.c54 # undef strtol
86 # undef strtol
89 # define strtol wcstoull macro
91 # define strtol wcstoul macro
95 # define strtol strtoull macro
97 # define strtol strtoul macro
102 # undef strtol
104 # define strtol wcstoll macro
106 # define strtol wcstol macro
110 # undef strtol
[all …]
/dports/textproc/gnugrep/grep-3.7/lib/
H A Dstrtol.c54 # undef strtol
86 # undef strtol
89 # define strtol wcstoull macro
91 # define strtol wcstoul macro
95 # define strtol strtoull macro
97 # define strtol strtoul macro
102 # undef strtol
104 # define strtol wcstoll macro
106 # define strtol wcstol macro
110 # undef strtol
[all …]
/dports/ftp/wget/wget-1.21.2/lib/
H A Dstrtol.c54 # undef strtol
86 # undef strtol
89 # define strtol wcstoull macro
91 # define strtol wcstoul macro
95 # define strtol strtoull macro
97 # define strtol strtoul macro
102 # undef strtol
104 # define strtol wcstoll macro
106 # define strtol wcstol macro
110 # undef strtol
[all …]
/dports/textproc/diffutils/diffutils-3.8/lib/
H A Dstrtol.c54 # undef strtol
86 # undef strtol
89 # define strtol wcstoull macro
91 # define strtol wcstoul macro
95 # define strtol strtoull macro
97 # define strtol strtoul macro
102 # undef strtol
104 # define strtol wcstoll macro
106 # define strtol wcstol macro
110 # undef strtol
[all …]
/dports/databases/slony1v2/slony1-2.2.10/src/slon/
H A Dlocal_listen.c264 no_id = (int) strtol(PQgetvalue(res, tupno, 6), NULL, 10); in localListenThread_main()
279 no_id = (int) strtol(PQgetvalue(res, tupno, 6), NULL, 10); in localListenThread_main()
295 no_id = (int) strtol(PQgetvalue(res, tupno, 6), NULL, 10); in localListenThread_main()
329 no_id = (int) strtol(PQgetvalue(res, tupno, 6), NULL, 10); in localListenThread_main()
411 set_id = (int) strtol(PQgetvalue(res, tupno, 6), NULL, 10); in localListenThread_main()
424 set_id = (int) strtol(PQgetvalue(res, tupno, 6), NULL, 10); in localListenThread_main()
435 add_id = (int) strtol(PQgetvalue(res, tupno, 7), NULL, 10); in localListenThread_main()
545 set_id = (int) strtol(PQgetvalue(res, tupno, 6), NULL, 10); in localListenThread_main()
579 (int) strtol(PQgetvalue(res2, 0, 0), NULL, 10); in localListenThread_main()
608 sub_set = (int) strtol(PQgetvalue(res, tupno, 6), NULL, 10); in localListenThread_main()
[all …]
/dports/math/dieharder/dieharder-3.31.1/dieharder/
H A Dparsecl.c73 tflag_tmp = strtol(optarg,&endptr,10); in parsecl()
126 dtest_tmp = strtol(optarg,&endptr,10); in parsecl()
152 gen_tmp = strtol(optarg,&endptr,10); in parsecl()
168 ks_test = strtol(optarg,(char **) NULL,10); in parsecl()
174 overlap = strtol(optarg,(char **) NULL,10); in parsecl()
184 ntuple = strtol(optarg,(char **) NULL,10); in parsecl()
197 Xoff = strtol(optarg,(char **) NULL,10); in parsecl()
200 psamples = strtol(optarg,(char **) NULL,10); in parsecl()
203 Seed = strtol(optarg,(char **) NULL,10); in parsecl()
211 itmp = strtol(optarg,(char **) NULL,10); in parsecl()
[all …]
/dports/devel/libgtop/libgtop-2.40.0/sysdeps/cygwin/
H A Dprocuid.c67 buf->pid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
70 buf->ppid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
78 buf->uid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
79 buf->euid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
87 buf->gid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
88 buf->egid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
100 buf->pgrp = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
101 buf->session = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
102 buf->tty = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
103 buf->tpgid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
[all …]
/dports/devel/libgtop/libgtop-2.40.0/sysdeps/linux/
H A Dprocuid.c67 buf->pid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
70 buf->ppid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
78 buf->uid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
79 buf->euid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
87 buf->gid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
88 buf->egid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
100 buf->pgrp = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
101 buf->session = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
102 buf->tty = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
103 buf->tpgid = strtol (p, &p, 0); in glibtop_get_proc_uid_s()
[all …]
/dports/net/tigervnc-server/tigervnc-1.12.0/unix/xserver/hw/dmx/examples/
H A Ddmxaddscreen.c63 screenNum = strtol(argv[2], NULL, 0); in main()
68 attr.screenWindowXoffset = strtol(argv[4], NULL, 0); in main()
69 attr.screenWindowYoffset = strtol(argv[5], NULL, 0); in main()
70 attr.screenWindowWidth = strtol(argv[6], NULL, 0); in main()
71 attr.screenWindowHeight = strtol(argv[7], NULL, 0); in main()
76 attr.rootWindowXoffset = strtol(argv[8], NULL, 0); in main()
77 attr.rootWindowYoffset = strtol(argv[9], NULL, 0); in main()
78 attr.rootWindowWidth = strtol(argv[10], NULL, 0); in main()
79 attr.rootWindowHeight = strtol(argv[11], NULL, 0); in main()
82 attr.rootWindowXorigin = strtol(argv[12], NULL, 0); in main()
[all …]
/dports/x11-servers/xephyr/xorg-server-1.20.13/hw/dmx/examples/
H A Ddmxaddscreen.c63 screenNum = strtol(argv[2], NULL, 0); in main()
68 attr.screenWindowXoffset = strtol(argv[4], NULL, 0); in main()
69 attr.screenWindowYoffset = strtol(argv[5], NULL, 0); in main()
70 attr.screenWindowWidth = strtol(argv[6], NULL, 0); in main()
71 attr.screenWindowHeight = strtol(argv[7], NULL, 0); in main()
76 attr.rootWindowXoffset = strtol(argv[8], NULL, 0); in main()
77 attr.rootWindowYoffset = strtol(argv[9], NULL, 0); in main()
78 attr.rootWindowWidth = strtol(argv[10], NULL, 0); in main()
79 attr.rootWindowHeight = strtol(argv[11], NULL, 0); in main()
82 attr.rootWindowXorigin = strtol(argv[12], NULL, 0); in main()
[all …]
/dports/x11-servers/xwayland/xorg-server-1.20.13/hw/dmx/examples/
H A Ddmxaddscreen.c63 screenNum = strtol(argv[2], NULL, 0); in main()
68 attr.screenWindowXoffset = strtol(argv[4], NULL, 0); in main()
69 attr.screenWindowYoffset = strtol(argv[5], NULL, 0); in main()
70 attr.screenWindowWidth = strtol(argv[6], NULL, 0); in main()
71 attr.screenWindowHeight = strtol(argv[7], NULL, 0); in main()
76 attr.rootWindowXoffset = strtol(argv[8], NULL, 0); in main()
77 attr.rootWindowYoffset = strtol(argv[9], NULL, 0); in main()
78 attr.rootWindowWidth = strtol(argv[10], NULL, 0); in main()
79 attr.rootWindowHeight = strtol(argv[11], NULL, 0); in main()
82 attr.rootWindowXorigin = strtol(argv[12], NULL, 0); in main()
[all …]

12345678910>>...408