Home
last modified time | relevance | path

Searched refs:str1 (Results 1 – 25 of 72) sorted by relevance

123

/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g77.dg/
Dstrlen0.f85 character*(*) function strcat(str1,str2)
86 character str1*(*), str2*(*) local
88 strcat = str1 // str2
91 character*(*) function strlat(str1,str2)
92 character str1*(*), str2*(*) local
94 strlat = str1(1:len(str1)) // str2(1:len(str2))
/openbsd/src/gnu/lib/libstdc++/libstdc++/testsuite/21_strings/
Doperations.cc31 std::string str1; in test01() local
37 str1 = std::string("8-chars_") + "8-chars_"; in test01()
38 const char* p1 = str1.c_str(); in test01()
40 str2 = str1 + "7-chars"; in test01()
42 const char* p2 = str1.c_str(); in test01()
/openbsd/src/bin/csh/
Dstr.c234 Strcmp(Char *str1, Char *str2) in Strcmp() argument
236 for (; *str1 && *str1 == *str2; str1++, str2++) in Strcmp()
243 if (*str1 == '\0' && *str2 == '\0') in Strcmp()
245 else if (*str1 == '\0') in Strcmp()
250 return (*str1 - *str2); in Strcmp()
254 Strncmp(Char *str1, Char *str2, size_t n) in Strncmp() argument
259 if (*str1 != *str2) { in Strncmp()
265 if (*str1 == '\0') in Strncmp()
270 return (*str1 - *str2); in Strncmp()
273 if (*str1 == '\0') in Strncmp()
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/cpp/trad/
Dliterals-1.c10 const char *str1 = "/*"; in main() local
13 if (str1[0] != '/' || str1[1] != '*' || str1[2] != '\0') in main()
Dmacroargs.c13 const char *str1 = f( foo ,bar); in main() local
18 if (strcmp (str1, " foo bar")) in main()
21 if (strcmp (str1, str2)) in main()
/openbsd/src/regress/sys/kern/signal/siginfo-fault/
Dsiginfo-fault.c88 char str1[NL_TEXTMAX], str2[NL_TEXTMAX]; in checksig() local
93 strlcpy(str1, strsignal(expsigno), sizeof(str1)); in checksig()
96 name, expsigno, str1, gotsigno, str2); in checksig()
100 strlcpy(str1, strsignal(expsigno), sizeof(str1)); in checksig()
103 name, expsigno, str1, gotsi.si_signo, str2); in checksig()
/openbsd/src/gnu/usr.sbin/mkhybrid/src/libhfs_iso/
Ddata.c298 int d_relstring(char *str1, char *str2) in d_relstring() argument
302 while (*str1 && *str2) in d_relstring()
304 diff = hfs_charorder[(unsigned char) *str1] - in d_relstring()
310 ++str1, ++str2; in d_relstring()
313 if (! *str1 && *str2) in d_relstring()
315 else if (*str1 && ! *str2) in d_relstring()
/openbsd/src/regress/lib/libc/cephes/
Dieetst.c67 static char str0[80], str1[80], str2[80], str3[80]; variable
557 etoasc( tst, str1, 21 );
558 printf( "Bad error: scanf(%s) = %s !\n", str0, str1 );
570 printf( "printf(%s%s%s, %s) -> %s\n", quo, tformat, quo, str1, str2 );
603 e64toasc( &prec64, str1, SPREC );
604 asctoe64( str1, &xprec64 );
606 chkinternal( rounded, t, str1 );
632 e64toasc( &ssprec64, str1, 24 );
651 e53toasc( &prec53, str1, SPREC );
652 asctoe53( str1, &xprec53 );
[all …]
/openbsd/src/gnu/usr.bin/perl/ext/XS-APItest/t/
Dcallregexec.t31 my $str1 = substr($str, 0, -1);
32 ok !!$exp == !!($str1 =~ $re), "$desc str =~ qr";
34 my $bytes = do { use bytes; length $str1 };
/openbsd/src/gnu/lib/libstdc++/libstdc++/testsuite/22_locale/
Doperators.cc35 string str1, str2; in test01() local
44 str1 = cloc.name(); in test01()
46 VERIFY( loc(str1, str2) == false ); in test01()
Dcollate_members_wchar_t.cc87 wstring str1 = coll_c.transform(strlit1, strlit1 + size1); in test01() local
89 i1 = str1.compare(str2); in test01()
153 std::wstring str1(L"fffff"); in test03() local
159 long l1 = col.hash(str1.c_str(), str1.c_str() + str1.size()); in test03()
Dcollate_members_char.cc87 string str1 = coll_c.transform(strlit1, strlit1 + size1); in test01() local
89 i1 = str1.compare(str2); in test01()
153 std::string str1("fffff"); in test03() local
159 long l1 = col.hash(str1.c_str(), str1.c_str() + str1.size()); in test03()
Dstatic_members.cc36 string str1, str2; in test01() local
49 str1 = loc06.name(); in test01()
50 VERIFY( str1 == "C" ); in test01()
/openbsd/src/gnu/usr.bin/perl/dist/threads-shared/t/
Dshared_attr.t69 my $str1 = "$shared";
71 ok($test_count++, $str1 eq $str2, 'stringify');
72 $str1 = $$shared{'foo'};
74 ok($test_count++, $str1 eq $str2, 'contents');
/openbsd/src/gnu/usr.bin/binutils-2.17/bfd/
Daix5ppc-core.c237 const char *str1, *str2; in xcoff64_core_file_matches_executable_p() local
280 str1 = strrchr (path, '/'); in xcoff64_core_file_matches_executable_p()
284 str1 = str1 != NULL ? str1 + 1 : path; in xcoff64_core_file_matches_executable_p()
287 if (strcmp (str1, str2) == 0) in xcoff64_core_file_matches_executable_p()
/openbsd/src/gnu/usr.bin/binutils/bfd/
Daix5ppc-core.c242 const char *str1, *str2; local
285 str1 = strrchr (path, '/');
289 str1 = str1 != NULL ? str1 + 1 : path;
292 if (strcmp (str1, str2) == 0)
/openbsd/src/usr.sbin/nsd/
Dtsig.c209 tsig_strlowercmp(const char* str1, const char* str2) in tsig_strlowercmp() argument
211 while (str1 && str2 && *str1 != '\0' && *str2 != '\0') { in tsig_strlowercmp()
212 if(tolower((unsigned char)*str1) != tolower((unsigned char)*str2)) { in tsig_strlowercmp()
213 if(tolower((unsigned char)*str1) < tolower((unsigned char)*str2)) in tsig_strlowercmp()
217 str1++; in tsig_strlowercmp()
220 if (str1 && str2) { in tsig_strlowercmp()
221 if (*str1 == *str2) in tsig_strlowercmp()
223 else if (*str1 == '\0') in tsig_strlowercmp()
226 else if (!str1 && !str2) in tsig_strlowercmp()
228 else if (!str1 && str2) in tsig_strlowercmp()
/openbsd/src/gnu/gcc/gcc/config/
Dmemcmp.c5 memcmp (const void *str1, const void *str2, size_t count) in memcmp() argument
7 const unsigned char *s1 = str1; in memcmp()
/openbsd/src/games/hack/
Dhack.do_name.c233 char **str1; in docall() local
249 str1 = &(objects[obj->otyp].oc_uname); in docall()
250 if(*str1) free(*str1); in docall()
251 *str1 = str; in docall()
/openbsd/src/gnu/lib/libiberty/src/
Dmemcmp.c22 memcmp (const PTR str1, const PTR str2, size_t count) in memcmp() argument
24 register const unsigned char *s1 = (const unsigned char*)str1; in memcmp()
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/cpp/
Dlexstrng.c19 const char *str1 = "s\ variable
47 if (strcmp (str1, "str 1")) in main()
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
Dinit3.C39 My_string str1 = strings[0]; in main() local
40 return strcmp ("first string", str1.char_p ()) != 0; in main()
/openbsd/src/regress/lib/libcrypto/dsa/
Ddsatest.c110 static const unsigned char str1[] = "12345678901234567890"; variable
187 DSA_sign(0, str1, 20, sig, &siglen, dsa); in main()
188 if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1) in main()
/openbsd/src/gnu/usr.bin/perl/
Dpp_sort.c1409 S_amagic_cmp(pTHX_ SV *const str1, SV *const str2) in S_amagic_cmp() argument
1411 SV * const tmpsv = tryCALL_AMAGICbin(str1,str2,scmp_amg); in S_amagic_cmp()
1425 return sv_cmp(str1, str2); in S_amagic_cmp()
1429 S_amagic_cmp_desc(pTHX_ SV *const str1, SV *const str2) in S_amagic_cmp_desc() argument
1433 return -S_amagic_cmp(aTHX_ str1, str2); in S_amagic_cmp_desc()
1437 S_cmp_desc(pTHX_ SV *const str1, SV *const str2) in S_cmp_desc() argument
1441 return -sv_cmp(str1, str2); in S_cmp_desc()
1447 S_amagic_cmp_locale(pTHX_ SV *const str1, SV *const str2) in S_amagic_cmp_locale() argument
1449 SV * const tmpsv = tryCALL_AMAGICbin(str1,str2,scmp_amg); in S_amagic_cmp_locale()
1463 return sv_cmp_locale(str1, str2); in S_amagic_cmp_locale()
[all …]
/openbsd/src/games/adventure/
Dextern.h117 #define weq(str1, str2) (!strncmp((str1), (str2), 5)) argument

123