Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 3139) sorted by relevance

12345678910>>...126

/openbsd/src/gnu/usr.bin/texinfo/makeinfo/
Dfloat.c50 num_len = strlen (new->number); in add_new_float()
59 unsigned len = strlen (new->number) + 21; /* that's 64 bits */ in add_new_float()
74 if (strlen (new->section) == 0) in add_new_float()
88 int l = strlen (chapter); in count_floats_of_type_in_chapter()
93 if (strlen (temp->id) > 0 && STREQ (text_expansion (temp->type), type)) in count_floats_of_type_in_chapter()
146 char *s = xmalloc (strlen (temp->type) + strlen (temp->number) + 2); in get_float_ref()
192 int command_len = sizeof ("@ ") + strlen (command) + strlen (float_type); in cm_listoffloats()
220 if (strlen (temp->id) > 0 && STREQ (float_type, temp->type)) in cm_listoffloats()
234 if (strlen (float_type) > 0) in cm_listoffloats()
237 if (strlen (temp->id) > 0) in cm_listoffloats()
[all …]
Dfiles.c47 if (!string || (i >= strlen (string))) in extract_colon_unit()
117 fullpath = xmalloc (2 + strlen (dir) + strlen (filename)); in get_file_info_in_path()
139 strlen (include_files_path) + 3); /* 3 for ":.\0" */ in prepend_to_include_path()
146 strlen (include_files_path) + strlen (path) + 2); /* 2 for ":\0" */ in prepend_to_include_path()
161 2 + strlen (include_files_path) + strlen (path)); in append_to_include_path()
174 for (i = 0; i < strlen (include_files_path) in pop_path_from_include_path()
178 tmp = (char *) xmalloc (strlen (include_files_path) - i); in pop_path_from_include_path()
350 int i = strlen (filename) - 1; in skip_directory_part()
457 result = xmalloc (strlen (&filename[1]) in full_pathname()
459 + (temp_home ? strlen (temp_home) in full_pathname()
[all …]
/openbsd/src/lib/libkeynote/
Dsignature.h30 #define DSA_HEX_LEN strlen(DSA_HEX)
32 #define DSA_BASE64_LEN strlen(DSA_BASE64)
34 #define RSA_PKCS1_HEX_LEN strlen(RSA_PKCS1_HEX)
36 #define RSA_PKCS1_BASE64_LEN strlen(RSA_PKCS1_BASE64)
38 #define ELGAMAL_HEX_LEN strlen(ELGAMAL_HEX)
40 #define ELGAMAL_BASE64_LEN strlen(ELGAMAL_BASE64)
42 #define PGP_NATIVE_LEN strlen(PGP_NATIVE)
44 #define BINARY_BASE64_LEN strlen(BINARY_BASE64)
46 #define BINARY_HEX_LEN strlen(BINARY_HEX)
48 #define X509_BASE64_LEN strlen(X509_BASE64)
[all …]
Dkeynote.h55 #define SIG_DSA_SHA1_HEX_LEN strlen(SIG_DSA_SHA1_HEX)
57 #define SIG_DSA_SHA1_BASE64_LEN strlen(SIG_DSA_SHA1_BASE64)
59 #define SIG_RSA_SHA1_PKCS1_HEX_LEN strlen(SIG_RSA_SHA1_PKCS1_HEX)
61 #define SIG_RSA_SHA1_PKCS1_BASE64_LEN strlen(SIG_RSA_SHA1_PKCS1_BASE64)
63 #define SIG_RSA_MD5_PKCS1_HEX_LEN strlen(SIG_RSA_MD5_PKCS1_HEX)
65 #define SIG_RSA_MD5_PKCS1_BASE64_LEN strlen(SIG_RSA_MD5_PKCS1_BASE64)
67 #define SIG_ELGAMAL_SHA1_HEX_LEN strlen(SIG_ELGAMAL_SHA1_HEX)
69 #define SIG_ELGAMAL_SHA1_BASE64_LEN strlen(SIG_ELGAMAL_SHA1_BASE64)
71 #define SIG_PGP_NATIVE_LEN strlen(SIG_PGP_NATIVE)
73 #define SIG_X509_SHA1_BASE64_LEN strlen(SIG_X509_SHA1_BASE64)
[all …]
/openbsd/src/lib/libexpat/tests/
Dacc_tests.c113 NULL, NULL, sizeof(XML_Char) * strlen("111<![CDATA[2 <= 2]]>333")}, in START_TEST()
126 NULL, sizeof(XML_Char) * (strlen("INCLUDE") + strlen("IGNORE"))}, in START_TEST()
134 NULL, NULL, sizeof(XML_Char) * strlen("123456789")}, in START_TEST()
139 NULL, NULL, sizeof(XML_Char) * strlen("123456789")}, in START_TEST()
147 * (strlen("&nine;") + strlen("123456789"))}, in START_TEST()
166 NULL, NULL, sizeof(XML_Char) * strlen("<!---->")}, in START_TEST()
174 * (strlen("<!ENTITY nine \"123456789\">") + strlen("123456789"))}, in START_TEST()
183 * (strlen("%comment;<!--22-->%comment;") + 2 * strlen("<!--1-->"))}, in START_TEST()
192 * (strlen("<!ENTITY five2 \"[%five;][%five;]]]]\">") in START_TEST()
193 + 2 /* calls to "%five;" */ * strlen("12345") in START_TEST()
[all …]
Dnsalloc_tests.c89 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
143 buffer = XML_GetBuffer(g_parser, (int)strlen(text)); in START_TEST()
147 memcpy(buffer, text, strlen(text)); in START_TEST()
148 if (XML_ParseBuffer(g_parser, (int)strlen(text), XML_TRUE) in START_TEST()
153 if (XML_ParseBuffer(g_parser, (int)strlen(text), XML_TRUE) in START_TEST()
158 if (XML_GetBuffer(g_parser, (int)strlen(text)) != NULL) in START_TEST()
165 if (XML_ParseBuffer(g_parser, (int)strlen(text), XML_TRUE) in START_TEST()
170 if (XML_GetBuffer(g_parser, (int)strlen(text)) != NULL) in START_TEST()
237 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
297 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
[all …]
Dalloc_tests.c85 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
135 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
162 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
188 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
229 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
253 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
279 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
305 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
326 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
356 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST()
[all …]
/openbsd/src/regress/lib/libcrypto/x509/
Dconstraints.c186 CBS_init(&cbs, valid_hostnames[i], strlen(valid_hostnames[i])); in test_valid_hostnames()
193 CBS_init(&cbs, valid_hostnames[i], strlen(valid_hostnames[i])); in test_valid_hostnames()
213 strlen(valid_sandns_names[i])); in test_valid_sandns_names()
233 strlen(valid_domain_constraints[i])); in test_valid_domain_constraints()
254 strlen(valid_mbox_names[i])); in test_valid_mbox_names()
280 strlen(invalid_hostnames[i])); in test_invalid_hostnames()
288 CBS_init(&cbs, nulhost, strlen(nulhost) + 1); in test_invalid_hostnames()
294 CBS_init(&cbs, nulhost, strlen(nulhost) + 1); in test_invalid_hostnames()
312 strlen(invalid_sandns_names[i])); in test_invalid_sandns_names()
333 strlen(invalid_mbox_names[i])); in test_invalid_mbox_names()
[all …]
/openbsd/src/gnu/usr.bin/texinfo/intl/
Dos2compat.c59 size_t sl = strlen (root); in nlos2_initialize()
60 _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); in nlos2_initialize()
62 memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); in nlos2_initialize()
73 size_t sl = strlen (root); in nlos2_initialize()
74 _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize()
76 memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize()
87 size_t sl = strlen (root); in nlos2_initialize()
88 _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); in nlos2_initialize()
90 memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); in nlos2_initialize()
96 if (strlen (_nlos2_localedir) <= MAXPATHLEN) in nlos2_initialize()
/openbsd/src/gnu/usr.sbin/mkhybrid/src/diag/
Disovfy.c177 iline += strlen(lbuffer+iline); in parse_rr()
188 iline += strlen(lbuffer + iline); in parse_rr()
190 iline += strlen(lbuffer + iline); in parse_rr()
195 iline += strlen(lbuffer + iline); in parse_rr()
201 iline += strlen(lbuffer + iline); in parse_rr()
221 iline += strlen(lbuffer + iline); in parse_rr()
227 iline += strlen(lbuffer + iline); in parse_rr()
250 iline += strlen(lbuffer + iline); in parse_rr()
255 iline += strlen(lbuffer + iline); in parse_rr()
259 iline += strlen(lbuffer + iline); in parse_rr()
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
Dstring-opt-13.c11 extern size_t strlen (const char *);
22 if (strlen (ptr) == 0) in main()
26 if (strlen (ptr) < 1) in main()
30 if (strlen (ptr) <= 0) in main()
34 if (strlen (ptr+3) != 0) in main()
38 if (strlen (ptr+3) > 0) in main()
42 if (strlen (str+3) >= 1) in main()
53 strlen (const char *s) in strlen() function
Dva-arg-2.c8 extern __SIZE_TYPE__ strlen ();
26 if (strlen (format) != 16 - 0) in f0()
40 if (strlen (format) != 16 - 1) in f1()
54 if (strlen (format) != 16 - 2) in f2()
68 if (strlen (format) != 16 - 3) in f3()
82 if (strlen (format) != 16 - 4) in f4()
97 if (strlen (format) != 16 - 5) in f5()
113 if (strlen (format) != 16 - 6) in f6()
129 if (strlen (format) != 16 - 7) in f7()
145 if (strlen (format) != 16 - 8) in f8()
[all …]
/openbsd/src/usr.sbin/unbound/dnstap/
Ddnstap_fstrm.c61 n = 4+4+4+4+4+strlen(contenttype); in fstrm_create_control_frame_start()
66 control[1] = htonl(4+4+4+strlen(contenttype)); in fstrm_create_control_frame_start()
69 control[4] = htonl(strlen(contenttype)); in fstrm_create_control_frame_start()
70 memmove(&control[5], contenttype, strlen(contenttype)); in fstrm_create_control_frame_start()
108 n = 4+4+4+4+4+strlen(contenttype); in fstrm_create_control_frame_ready()
114 control[1] = htonl(4+4+4+strlen(contenttype)); in fstrm_create_control_frame_ready()
117 control[4] = htonl(strlen(contenttype)); in fstrm_create_control_frame_ready()
118 memmove(&control[5], contenttype, strlen(contenttype)); in fstrm_create_control_frame_ready()
136 n = 4+4+4+4+4+strlen(contenttype); in fstrm_create_control_frame_accept()
142 control[1] = htonl(4+4+4+strlen(contenttype)); in fstrm_create_control_frame_accept()
[all …]
/openbsd/src/gnu/usr.bin/texinfo/info/
Dinfodoc.c194 unsigned prefix_len = strlen (prefix);
248 if ((desired_doc_start + strlen (doc))
360 replace_in_documentation (strlen (function_doc_array[i].doc)
386 node->nodelen = 1 + strlen (contents);
589 return replace_in_documentation ((strlen (doc) == 0) ? doc : (char *) _(doc), 0);
725 (10 + strlen (keyname) + strlen (fundoc) + strlen (funname));
808 if (term_kP && strncmp(keyseq, term_kP, strlen(term_kP)) == 0)
811 keyseq += strlen(term_kP);
813 else if (term_kN && strncmp(keyseq, term_kN, strlen(term_kN)) == 0)
816 keyseq += strlen(term_kN);
[all …]
Dfilesys.c146 if (strlen (temp) > (unsigned int) local_temp_filename_size) in info_find_fullpath()
149 (local_temp_filename_size = (50 + strlen (temp)))); in info_find_fullpath()
190 temp = (char *)xmalloc (30 + strlen (temp_dirname) + strlen (filename)); in info_file_in_path()
192 if (!IS_SLASH (temp[(strlen (temp)) - 1])) in info_file_in_path()
196 pre_suffix_length = strlen (temp); in info_file_in_path()
236 pre_compress_suffix_length = strlen (temp); in info_file_in_path()
281 if (!string || i >= strlen (string)) in extract_colon_unit()
362 xmalloc (infopath_size = (1 + strlen (DEFAULT_INFOPATH))); in maybe_initialize_infopath()
377 infopath = (char *)xmalloc (infopath_size = 200 + strlen (path)); in info_add_path()
381 len = strlen (path) + strlen (infopath); in info_add_path()
[all …]
Dtilde.c68 string_len = strlen (string); in tilde_find_prefix()
80 if (strncmp (string + i, prefixes[j], strlen (prefixes[j])) == 0) in tilde_find_prefix()
82 *len = strlen (prefixes[j]) - 1; in tilde_find_prefix()
99 string_len = strlen (string); in tilde_find_suffix()
108 if (strncmp (string + i, suffixes[j], strlen (suffixes[j])) == 0) in tilde_find_suffix()
162 len = strlen (expansion); in tilde_expand()
202 temp_name = xmalloc (1 + strlen (&dirname[1]) in tilde_expand_word()
203 + (temp_home ? strlen (temp_home) : 0)); in tilde_expand_word()
239 temp_name = xmalloc (1 + strlen (expansion) in tilde_expand_word()
240 + strlen (&dirname[i])); in tilde_expand_word()
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
D920625-2.c33 …rmstring = (("rm -fr") != ((void *)0) ? (strcpy((char*)XtMalloc((unsigned)strlen("rm -fr") + 1), "… in trashQueryResult()
37 (strlen(rmstring) + in trashQueryResult()
38 strlen(tmp->string) + 5)); in trashQueryResult()
71 srclen = strlen(srcdir); in copyQueryResult()
72 dstlen = strlen(dstdir); in copyQueryResult()
73 …copystring = (("cp -r") != ((void *)0) ? (strcpy((char*)XtMalloc((unsigned)strlen("cp -r") + 1), "… in copyQueryResult()
77 (strlen(copystring) + in copyQueryResult()
78 strlen(tmp->string) + in copyQueryResult()
84 (strlen(copystring) + in copyQueryResult()
/openbsd/src/gnu/gcc/libmudflap/
Dmf-hooks2.c193 size_t n = strlen (src); in WRAPPER2()
218 dest_sz = strlen (dest); in WRAPPER2()
219 src_sz = strlen (src); in WRAPPER2()
267 s1_sz = strlen (s1); in WRAPPER2()
268 s2_sz = strlen (s2); in WRAPPER2()
280 s1_sz = strlen (s1); in WRAPPER2()
281 s2_sz = strlen (s2); in WRAPPER2()
318 size_t n = strlen (s); in WRAPPER2()
366 n = strlen (s); in WRAPPER2()
376 n = strlen (s); in WRAPPER2()
[all …]
/openbsd/src/usr.bin/ftp/
Dutil.c335 int len = strlen(line), ret; in another()
347 len += strlen(&line[len]); in another()
395 len = strlen(cp); in remglob2()
700 dirlen = strlen(dir); in fileindir()
794 int l = strlen(action); in progressmeter()
811 int l = strlen(title); in progressmeter()
821 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), in progressmeter()
831 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), in progressmeter()
849 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), in progressmeter()
870 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), in progressmeter()
[all …]
/openbsd/src/gnu/usr.bin/cvs/src/
Dserver.c353 p = malloc (strlen (dir) + 1);
357 dir_where_cvsadm_lives = malloc (strlen (base_dir) + strlen (dir) + 100);
365 tmp = malloc (strlen (base_dir) + strlen (dir) + 100);
408 empty = malloc (strlen (current_parsed_root->directory)
527 char *q = malloc (strlen (dir) + 1);
748 if (alloc_pending (80 + strlen (arg)))
763 if (alloc_pending (80 + strlen (arg)))
774 if (alloc_pending (80 + strlen (Pserver_Repos) + strlen (arg)))
793 path = malloc (strlen (current_parsed_root->directory)
805 if (alloc_pending (80 + strlen (path)))
[all …]
/openbsd/src/gnu/usr.bin/binutils/binutils/
Dwrstabs.c369 info->strings_size += strlen (string) + 1; in stab_write_symbol()
534 p += strlen ((char *) p) + 1; in write_stabs_in_sections_debugging_info()
661 sprintf (buf + strlen (buf), "%ld;", ((long) 1 << (size * 8)) - 1); in stab_int_type()
672 sprintf (buf + strlen (buf), "%ld;%ld;", in stab_int_type()
792 buf = (char *) xmalloc (10 + strlen (tag)); in stab_enum_type()
803 len += strlen (tag); in stab_enum_type()
805 len += strlen (*pn) + 20; in stab_enum_type()
819 sprintf (buf + strlen (buf), "%s:%ld,", *pn, (long) *pv); in stab_enum_type()
865 buf = (char *) xmalloc (strlen (s) + 2); in stab_modify_type()
908 buf = (char *) xmalloc (strlen (s) + 20); in stab_modify_type()
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/binutils/
Dwrstabs.c369 info->strings_size += strlen (string) + 1; in stab_write_symbol()
536 p += strlen ((char *) p) + 1; in write_stabs_in_sections_debugging_info()
663 sprintf (buf + strlen (buf), "%ld;", ((long) 1 << (size * 8)) - 1); in stab_int_type()
674 sprintf (buf + strlen (buf), "%ld;%ld;", in stab_int_type()
794 buf = (char *) xmalloc (10 + strlen (tag)); in stab_enum_type()
805 len += strlen (tag); in stab_enum_type()
807 len += strlen (*pn) + 20; in stab_enum_type()
821 sprintf (buf + strlen (buf), "%s:%ld,", *pn, (long) *pv); in stab_enum_type()
867 buf = (char *) xmalloc (strlen (s) + 2); in stab_modify_type()
910 buf = (char *) xmalloc (strlen (s) + 20); in stab_modify_type()
[all …]
/openbsd/src/regress/lib/libc/fmemopen/
Dfmemopentest.c34 s1 = fmemopen(string, strlen(string) + 1, "r"); in simpletest()
50 if (ftell(s2) != strlen(string) + 1) { in simpletest()
63 if (len != strlen(string) + 1) { in simpletest()
65 len, strlen(string) + 1); in simpletest()
98 if (ftell(s1) != strlen("hello world")) { in appendtest()
117 if (strcmp(string + strlen(string) + 1, "number 2")) { in appendtest()
173 slen = strlen(string) + 1; in writetest()
180 if (len != strlen("short")) { in writetest()
203 if (strcmp(string + strlen(string) + 1, "test number 3")) { in writetest()
219 slen = strlen(string) + 1; in seektest()
/openbsd/src/gnu/lib/libreadline/
Dtilde.c143 string_len = strlen (string);
155 if (strncmp (string + i, prefixes[j], strlen (prefixes[j])) == 0)
157 *len = strlen (prefixes[j]) - 1;
176 string_len = strlen (string);
189 if (strncmp (string + i, suffixes[j], strlen (suffixes[j])) == 0)
206 result = (char *)xmalloc (result_size = (strlen (string) + 16));
208 result = (char *)xmalloc (result_size = (strlen (string) + 1));
247 len = strlen (expansion);
280 ret = (char *)xmalloc (strlen (fname));
304 plen = (prefix && *prefix) ? strlen (prefix) : 0;
[all …]
/openbsd/src/gnu/gcc/gcc/config/i386/
Dwinnt.c186 strlen (DLL_EXPORT_PREFIX)) == 0); in i386_pe_dllexport_name_p()
195 strlen (DLL_IMPORT_PREFIX)) == 0); in i386_pe_dllimport_name_p()
220 oldname += strlen (DLL_IMPORT_PREFIX); in i386_pe_mark_dllexport()
225 newname = alloca (strlen (DLL_EXPORT_PREFIX) + strlen (oldname) + 1); in i386_pe_mark_dllexport()
270 newname = alloca (strlen (DLL_IMPORT_PREFIX) + strlen (oldname) + 1); in i386_pe_mark_dllimport()
332 newsym = alloca (1 + strlen (asmname) + 1 + 8 + 1); in gen_stdcall_or_fastcall_suffix()
412 if (strncmp (str, DLL_IMPORT_PREFIX, strlen (DLL_IMPORT_PREFIX)) in i386_pe_strip_name_encoding()
414 str += strlen (DLL_IMPORT_PREFIX); in i386_pe_strip_name_encoding()
415 else if (strncmp (str, DLL_EXPORT_PREFIX, strlen (DLL_EXPORT_PREFIX)) in i386_pe_strip_name_encoding()
417 str += strlen (DLL_EXPORT_PREFIX); in i386_pe_strip_name_encoding()
[all …]

12345678910>>...126