Home
last modified time | relevance | path

Searched refs:buf1 (Results 1 – 25 of 80) sorted by relevance

1234

/openbsd/games/battlestar/
H A Dgetcom.c78 buf1++; in getword()
79 if (*buf1 != ',' && *buf1 != '.') { in getword()
80 if (!*buf1) { in getword()
84 while (cnt < WORDLEN && *buf1 && !isspace((unsigned char)*buf1) && in getword()
85 *buf1 != ',' && *buf1 != '.') in getword()
103 *buf2++ = *buf1++; in getword()
107 while (*buf1 && !isspace((unsigned char)*buf1)) in getword()
108 buf1++; in getword()
110 *buf2++ = *buf1++; in getword()
113 buf1++; in getword()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dstrncmp-1.c47 unsigned char *buf1, *buf2; in main() local
59 buf1 = p1; in main()
82 test (buf1, buf2, len, 0); in main()
88 test (buf1, buf2, len, 0); in main()
94 test (buf1, buf2, len, 0); in main()
101 test (buf1, buf2, len, 0); in main()
108 test (buf1, buf2, len, 0); in main()
115 test (buf1, buf2, len, 0); in main()
122 test (buf1, buf2, len, 0); in main()
129 test (buf1, buf2, len, 0); in main()
[all …]
H A Dstrcmp-1.c47 unsigned char *buf1, *buf2; in main() local
59 buf1 = p1; in main()
81 test (buf1, buf2, 0); in main()
86 test (buf1, buf2, +1); in main()
91 test (buf1, buf2, -1); in main()
97 test (buf1, buf2, -1); in main()
103 test (buf1, buf2, +1); in main()
109 test (buf1, buf2, -1); in main()
115 test (buf1, buf2, +1); in main()
121 test (buf1, buf2, -1); in main()
[all …]
H A D920726-1.c57 char buf1[100], buf2[100]; in main() local
58 first(buf1, "i i ", 5, 20); in main()
60 if (strcmp ("5 20 ", buf1) || strcmp ("5 20 ", buf2)) in main()
/openbsd/usr.sbin/radiusctl/
H A Dradiusctl.c347 char buf[256], buf1[256]; in radius_dump() local
380 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
388 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
389 ? buf1 : "(too long)"); in radius_dump()
396 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
397 ? buf1 : "(too long)"); in radius_dump()
404 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
405 ? buf1 : "(too long)"); in radius_dump()
428 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
429 ? buf1 : "(too long)"); in radius_dump()
[all …]
/openbsd/usr.bin/locate/bigram/
H A Dlocate.bigram.c51 u_char buf1[PATH_MAX] = " "; variable
59 u_char *oldpath = buf1, *path = buf2; in main()
85 if (path == buf1) { in main()
87 oldpath = buf1; in main()
89 path = buf1; in main()
/openbsd/gnu/usr.bin/perl/hints/
H A Dirix_6.sh587 char buf1[64];
589 buf1[63] = '\0';
592 (void)sprintf(buf1,"%.0"sPRIfldbl,(long double)0.6L);
594 if (strcmp(buf1,buf2)) {
597 (void)sprintf(buf1,"%.0"sPRIfldbl,(long double)-0.6L);
599 if (strcmp(buf1,buf2)) {
626 char buf1[64];
628 buf1[63] = '\0';
631 (void)sprintf(buf1,"%.0"sPRIfldbl,(long double)1.6L);
633 if (strcmp(buf1,buf2)) {
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/
H A Dcoremaker.c41 char *buf1; variable
62 buf1 = (char *) malloc (MAPSIZE); in mmapdata()
65 buf1[j] = j; in mmapdata()
77 write (fd, buf1, MAPSIZE); in mmapdata()
94 if (buf1[j] != buf2[j]) in mmapdata()
/openbsd/bin/stty/
H A Dprint.c54 char buf1[100], buf2[100]; in print() local
174 (void)snprintf(buf1, sizeof(buf1), "%s = %s;", in print()
176 bput(buf1, 0); in print()
185 (void)snprintf(buf1 + cnt * 8, sizeof(buf1) - cnt * 8, in print()
191 (void)printf("%s\n", buf1); in print()
196 (void)printf("%s\n", buf1); in print()
/openbsd/lib/libradius/
H A Dradius_eapmsk.c41 uint8_t buf1[256]; in radius_get_eap_msk() local
48 len1 = sizeof(buf1); in radius_get_eap_msk()
50 radius_get_mppe_send_key_attr(packet, buf1, &len1, secret) == 0) { in radius_get_eap_msk()
56 memcpy(((char *)buf) + len0, buf1, len1); in radius_get_eap_msk()
/openbsd/gnu/gcc/gcc/
H A Dvmsdbgout.c429 char buf1[256]; in addr_const_to_string() local
443 strcat (str, buf1); in addr_const_to_string()
460 strcat (str, buf1); in addr_const_to_string()
467 strcat (str, buf1); in addr_const_to_string()
482 strcat (str, buf1); in addr_const_to_string()
495 strcat (str, buf1); in addr_const_to_string()
499 strcat (str, buf1); in addr_const_to_string()
504 strcat (str, buf1); in addr_const_to_string()
508 strcat (str, buf1); in addr_const_to_string()
527 strcat (str, buf1); in addr_const_to_string()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dvmsdbgout.c406 char buf1[256]; local
422 strcat (str, buf1);
439 strcat (str, buf1);
446 strcat (str, buf1);
461 strcat (str, buf1);
474 strcat (str, buf1);
478 strcat (str, buf1);
483 strcat (str, buf1);
487 strcat (str, buf1);
506 strcat (str, buf1);
[all …]
/openbsd/regress/gnu/egcs/gcc-bounds/
H A Dsscanf-3.c3 extern char buf1[];
6 char q[10], buf1[10]; in main() local
7 sscanf(q,"%[.0-9]",buf1); in main()
H A Dsscanf-4.c5 char buf1[10]; in main() local
6 sscanf(q,"%10c",buf1); in main()
H A Dsscanf-5.c5 char buf1[10]; in main() local
6 sscanf(q,"%20c",buf1); in main()
/openbsd/usr.bin/locate/code/
H A Dlocate.code.c91 u_char buf1[PATH_MAX] = " "; variable
167 oldpath = buf1; in main()
233 if (path == buf1) { /* swap pointers */ in main()
235 oldpath = buf1; in main()
237 path = buf1; in main()
/openbsd/usr.sbin/eeprom/
H A Dophandlers.c177 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; in op_dump() local
189 bzero(buf1, sizeof(buf1)); in op_dump()
194 opio1.op_name = buf1; in op_dump()
253 bzero(opio1.op_name, sizeof(buf1)); in op_dump()
255 strlcpy(opio1.op_name, opio2.op_name, sizeof(buf1)); in op_dump()
/openbsd/gnu/usr.bin/perl/cpan/Test-Harness/t/
H A Dyamlish-output.t71 my @buf1 = ();
77 destination => \@buf1,
78 normalise => sub { return \@buf1 },
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A D20001221-1.c8 char buf1[nibbles + 1]; in foo() local
11 buf1[nibbles] = '\0'; in foo()
16 void *__s = (buf1); in foo()
/openbsd/gnu/lib/libreadline/
H A Dmbutil.c229 _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2) in _rl_compare_chars() argument
230 char *buf1; in _rl_compare_chars()
239 if ((w1 = _rl_get_char_len (&buf1[pos1], ps1)) <= 0 ||
242 (buf1[pos1] != buf2[pos2]))
246 if (buf1[pos1+i] != buf2[pos2+i])
/openbsd/gnu/usr.bin/gcc/gcc/intl/
H A Dlocalcharset.c122 char buf1[50+1]; in get_charset_aliases() local
146 if (fscanf(fp, "%50s %50s", buf1, buf2) < 2) in get_charset_aliases()
148 l1 = strlen (buf1); in get_charset_aliases()
166 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); in get_charset_aliases()
/openbsd/gnu/gcc/intl/
H A Dlocalcharset.c145 char buf1[50+1]; in get_charset_aliases() local
169 if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) in get_charset_aliases()
171 l1 = strlen (buf1); in get_charset_aliases()
189 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); in get_charset_aliases()
/openbsd/gnu/usr.bin/texinfo/intl/
H A Dlocalcharset.c145 char buf1[50+1]; in get_charset_aliases() local
169 if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) in get_charset_aliases()
171 l1 = strlen (buf1); in get_charset_aliases()
189 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); in get_charset_aliases()
/openbsd/libexec/talkd/
H A Dprocess.c94 char buf1[32], buf2[32]; in process_request() local
96 strlcpy(buf1, inet_ntoa(satosin(&rp->addr)->sin_addr), in process_request()
97 sizeof(buf1)); in process_request()
101 buf1, buf2); in process_request()
/openbsd/usr.sbin/npppd/npppd/
H A Dnpppd_pool.c125 char buf0[BUFSIZ], buf1[BUFSIZ]; in npppd_pool_reload() local
163 snprintf(buf1, sizeof(buf1), "%d.%d.%d.%d/%d", in npppd_pool_reload()
165 strlcat(buf0, buf1, sizeof(buf0)); in npppd_pool_reload()
179 snprintf(buf1, sizeof(buf1), "%d.%d.%d.%d/%d", in npppd_pool_reload()
181 strlcat(buf0, buf1, sizeof(buf0)); in npppd_pool_reload()

1234