Debian Codegraph @

po/ru/man3/strcmp.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexander Golubev <[email protected]>, 2018.
5 # Azamat Hackimov <[email protected]>, 2011, 2014-2016.
6 # Hotellook, 2014.
7 # Nikita <[email protected]>, 2014.
8 # Spiros Georgaras <[email protected]>, 2016.
9 # Vladislav <[email protected]>, 2015.
10 # Yuri Kozlov <[email protected]>, 2011-2019.
11 # Иван Павлов <[email protected]>, 2017.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "strcmp"
33 msgstr ""
34
35 #. type: TH
36 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "2026-03-16"
39 msgstr "16 марта 2026 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid "strcmp, strncmp - compare two strings"
59 msgstr "strcmp, strncmp - сравнивает две строки"
60
61 #. type: SH
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid "LIBRARY"
66 msgstr "БИБЛИОТЕКА"
67
68 #. type: Plain text
69 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
70 #: opensuse-leap-16-1 opensuse-tumbleweed
71 msgid "Standard C library (I<libc>,\\ I<-lc>)"
72 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
73
74 #. type: SH
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "SYNOPSIS"
79 msgstr "СИНТАКСИС"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<#include E<lt>string.hE<gt>>\n"
86 msgstr "B<#include E<lt>string.hE<gt>>\n"
87
88 #. type: Plain text
89 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
90 #: opensuse-tumbleweed
91 #, fuzzy, no-wrap
92 #| msgid ""
93 #| "B<char *strndup(const char *>I<s>B<, size_t >I<n>B<);>\n"
94 #| "B<char *strdupa(const char *>I<s>B<);>\n"
95 #| "B<char *strndupa(const char *>I<s>B<, size_t >I<n>B<);>\n"
96 msgid ""
97 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
98 "B<int strncmp(const char >s1B<[], const char >s2B<[], size_t >nB<);>\n"
99 msgstr ""
100 "B<char *strndup(const char *>I<s>B<, size_t >I<n>B<);>\n"
101 "B<char *strdupa(const char *>I<s>B<);>\n"
102 "B<char *strndupa(const char *>I<s>B<, size_t >I<n>B<);>\n"
103
104 #. type: SH
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid "DESCRIPTION"
109 msgstr "ОПИСАНИЕ"
110
111 #. type: TP
112 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
113 #, fuzzy, no-wrap
114 #| msgid "B<strncpy>(3)"
115 msgid "B<strcmp>()"
116 msgstr "B<strncpy>(3)"
117
118 #. type: Plain text
119 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "The B<strcmp>() function compares the two strings I<s1> and I<s2>, as if by "
122 "calling B<memcmp>(3)."
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "The locale is not taken into account (for a locale-aware comparison, see "
129 "B<strcoll>(3))."
130 msgstr ""
131
132 #. type: Plain text
133 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
134 #, fuzzy
135 #| msgid "is equivalent to"
136 msgid "It is equivalent to"
137 msgstr "равнозначно"
138
139 #. type: Plain text
140 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
141 #, no-wrap
142 msgid "memcmp(s1, s2, MIN(strlen(s1),strlen(s2))+1)\n"
143 msgstr ""
144
145 #. type: TP
146 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
147 #, fuzzy, no-wrap
148 #| msgid "B<strncpy>(3)"
149 msgid "B<strncmp>()"
150 msgstr "B<strncpy>(3)"
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid ""
156 "The B<strncmp>() function is similar, except it compares only the first (at "
157 "most) I<n> bytes of I<s1> and I<s2>."
158 msgstr ""
159 "Функция B<strncmp>() работает аналогичным образом, но сравниваются только "
160 "первые (не более) I<n> байт строки I<s1> и I<s2>."
161
162 #. type: Plain text
163 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid "memcmp(s1, s2, MIN(MIN(strnlen(s1,n),strnlen(s2,n))+1, n))\n"
166 msgstr ""
167
168 #. type: SH
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "RETURN VALUE"
173 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "The B<strcmp>() and B<strncmp>() functions return an integer less than, "
180 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
181 "found, respectively, to be less than, to match, or be greater than I<s2>."
182 msgstr ""
183 "Функции B<strcmp>() и B<strncmp>() возвращают целое число, которое меньше, "
184 "больше нуля или равно ему, если строка I<s1> (или её первые I<n> байтов) "
185 "соответственно меньше, больше или равна I<s2>."
186
187 #. type: SH
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "ATTRIBUTES"
192 msgstr "АТРИБУТЫ"
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "For an explanation of the terms used in this section, see B<attributes>(7)."
199 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
200
201 #. type: tbl table
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "Interface"
206 msgstr "Интерфейс"
207
208 #. type: tbl table
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "Attribute"
213 msgstr "Атрибут"
214
215 #. type: tbl table
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "Value"
220 msgstr "Значение"
221
222 #. type: tbl table
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid ".na\n"
227 msgstr ".na\n"
228
229 #. type: tbl table
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid ".nh\n"
234 msgstr ".nh\n"
235
236 #. type: tbl table
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid ""
241 "B<strcmp>(),\n"
242 "B<strncmp>()"
243 msgstr ""
244 "B<strcmp>(),\n"
245 "B<strncmp>()"
246
247 #. type: tbl table
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "Thread safety"
252 msgstr "Безвредность в нитях"
253
254 #. type: tbl table
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "MT-Safe"
259 msgstr "MT-Safe"
260
261 #. type: SH
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "VERSIONS"
266 msgstr "ВЕРСИИ"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid "POSIX.1 specifies only that:"
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid ""
278 "The sign of a nonzero return value shall be determined by the sign of the "
279 "difference between the values of the first pair of bytes (both interpreted "
280 "as type I<unsigned char>) that differ in the strings being compared."
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "In glibc, as in most other implementations, the return value is the "
288 "arithmetic result of subtracting the last compared byte in I<s2> from the "
289 "last compared byte in I<s1>. (If the two characters are equal, this "
290 "difference is 0.)"
291 msgstr ""
292
293 #. type: SH
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "STANDARDS"
298 msgstr "СТАНДАРТЫ"
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid "C11, POSIX.1-2008."
304 msgstr "C11, POSIX.1-2008."
305
306 #. type: SH
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "HISTORY"
311 msgstr "ИСТОРИЯ"
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
317 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
318
319 #. type: SH
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "EXAMPLES"
324 msgstr "ПРИМЕРЫ"
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, fuzzy
330 #| msgid ""
331 #| "The program below can be used to demonstrate the behavior of "
332 #| "B<strverscmp>(). It uses B<strverscmp>() to compare the two strings "
333 #| "given as its command-line arguments. An example of its use is the "
334 #| "following:"
335 msgid ""
336 "The program below can be used to demonstrate the operation of B<strcmp>() "
337 "(when given two arguments) and B<strncmp>() (when given three arguments). "
338 "First, some examples using B<strcmp>():"
339 msgstr ""
340 "Показанная далее программа демонстрирует поведение B<strverscmp>(). Функция "
341 "B<strverscmp>() используется для сравнения двух строк, заданных в аргументах "
342 "командной строки. Пример работы:"
343
344 #. type: Plain text
345 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
346 #: opensuse-tumbleweed
347 #, no-wrap
348 msgid ""
349 "$B< ./string_comp ABC ABC>;\n"
350 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
351 "$B< ./string_comp ABC AB>; # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
352 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
353 "$B< ./string_comp ABA ABZ>; # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
354 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
355 "$B< ./string_comp ABJ ABC>;\n"
356 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
357 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (or 64 decimal)\n"
358 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
359 msgstr ""
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 msgid ""
365 "The last example uses B<bash>(1)-specific syntax to produce a string "
366 "containing an 8-bit ASCII code; the result demonstrates that the string "
367 "comparison uses unsigned characters."
368 msgstr ""
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid "And then some examples using B<strncmp>():"
374 msgstr ""
375
376 #. type: Plain text
377 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
378 #: opensuse-tumbleweed
379 #, no-wrap
380 msgid ""
381 "$B< ./string_comp ABC AB 3>;\n"
382 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
383 "$B< ./string_comp ABC AB 2>;\n"
384 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
385 msgstr ""
386
387 #. type: SS
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "Program source"
392 msgstr "Исходный код программы"
393
394 #. type: Plain text
395 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
396 #: opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid ""
399 "/* string_comp.c\n"
400 "\\&\n"
401 " Licensed under GNU General Public License v2 or later.\n"
402 "*/\n"
403 "#include E<lt>stdio.hE<gt>\n"
404 "#include E<lt>stdlib.hE<gt>\n"
405 "#include E<lt>string.hE<gt>\n"
406 "\\&\n"
407 "int\n"
408 "main(int argc, char *argv[])\n"
409 "{\n"
410 " int res;\n"
411 "\\&\n"
412 " if (argc E<lt> 3) {\n"
413 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
414 " exit(EXIT_FAILURE);\n"
415 " }\n"
416 "\\&\n"
417 " if (argc == 3)\n"
418 " res = strcmp(argv[1], argv[2]);\n"
419 " else\n"
420 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
421 "\\&\n"
422 " if (res == 0) {\n"
423 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
424 " if (argc E<gt> 3)\n"
425 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
426 " printf(\"\\[rs]n\");\n"
427 " } else if (res E<lt> 0) {\n"
428 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
429 " } else {\n"
430 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
431 " }\n"
432 "\\&\n"
433 " exit(EXIT_SUCCESS);\n"
434 "}\n"
435 msgstr ""
436
437 #. SRC END
438 #. type: SH
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "SEE ALSO"
443 msgstr "СМОТРИТЕ ТАКЖЕ"
444
445 #. type: Plain text
446 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
447 #, fuzzy
448 #| msgid ""
449 #| "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
450 #| "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3)"
451 msgid ""
452 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
453 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
454 msgstr ""
455 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
456 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3)"
457
458 #. type: TH
459 #: debian-trixie
460 #, no-wrap
461 msgid "2024-06-15"
462 msgstr "15 июня 2024 г."
463
464 #. type: TH
465 #: debian-trixie
466 #, no-wrap
467 msgid "Linux man-pages 6.9.1"
468 msgstr "Страницы руководства Linux 6.9.1"
469
470 #. type: Plain text
471 #: debian-trixie
472 msgid "Standard C library (I<libc>, I<-lc>)"
473 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
474
475 #. type: Plain text
476 #: debian-trixie fedora-44 fedora-rawhide
477 #, fuzzy, no-wrap
478 #| msgid ""
479 #| "B<char *strndup(const char *>I<s>B<, size_t >I<n>B<);>\n"
480 #| "B<char *strdupa(const char *>I<s>B<);>\n"
481 #| "B<char *strndupa(const char *>I<s>B<, size_t >I<n>B<);>\n"
482 msgid ""
483 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
484 "B<int strncmp(const char >I<s1>B<[.>I<n>B<], const char >I<s2>B<[.>I<n>B<], size_t >I<n>B<);>\n"
485 msgstr ""
486 "B<char *strndup(const char *>I<s>B<, size_t >I<n>B<);>\n"
487 "B<char *strdupa(const char *>I<s>B<);>\n"
488 "B<char *strndupa(const char *>I<s>B<, size_t >I<n>B<);>\n"
489
490 #. type: Plain text
491 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
492 #, fuzzy
493 #| msgid ""
494 #| "The B<strcmp>() function compares the two strings I<s1> and I<s2>. The "
495 #| "locale is not taken into account (for a locale-aware comparison, see "
496 #| "B<strcoll>(3)). It returns an integer less than, equal to, or greater "
497 #| "than zero if I<s1> is found, respectively, to be less than, to match, or "
498 #| "be greater than I<s2>."
499 msgid ""
500 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. The "
501 "locale is not taken into account (for a locale-aware comparison, see "
502 "B<strcoll>(3)). The comparison is done using unsigned characters."
503 msgstr ""
504 "Функция B<strcmp>() сравнивает строки I<s1> и I<s2>. При этом локаль не "
505 "учитывается (для её учёта используйте функцию B<strcoll>(3)). Она возвращает "
506 "целое число, которое меньше, больше нуля или равно ему, если выяснится, что "
507 "I<s1> меньше, равна или больше I<s2> соответственно."
508
509 #. type: Plain text
510 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
511 msgid ""
512 "B<strcmp>() returns an integer indicating the result of the comparison, as "
513 "follows:"
514 msgstr ""
515
516 #. type: IP
517 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
518 #, no-wrap
519 msgid "\\[bu]"
520 msgstr "\\[bu]"
521
522 #. type: Plain text
523 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
524 msgid "0, if the I<s1> and I<s2> are equal;"
525 msgstr ""
526
527 #. type: Plain text
528 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
529 msgid "a negative value if I<s1> is less than I<s2>;"
530 msgstr ""
531
532 #. type: Plain text
533 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
534 msgid "a positive value if I<s1> is greater than I<s2>."
535 msgstr ""
536
537 #. type: Plain text
538 #: debian-trixie fedora-44 fedora-rawhide
539 #, no-wrap
540 msgid ""
541 "$ B<./string_comp ABC ABC>\n"
542 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
543 "$ B<./string_comp ABC AB> # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
544 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
545 "$ B<./string_comp ABA ABZ> # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
546 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
547 "$ B<./string_comp ABJ ABC>\n"
548 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
549 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (or 64 decimal)\n"
550 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
551 msgstr ""
552
553 #. type: Plain text
554 #: debian-trixie fedora-44 fedora-rawhide
555 #, no-wrap
556 msgid ""
557 "$ B<./string_comp ABC AB 3>\n"
558 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
559 "$ B<./string_comp ABC AB 2>\n"
560 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
561 msgstr ""
562
563 #. type: Plain text
564 #: debian-trixie
565 #, no-wrap
566 msgid ""
567 "/* string_comp.c\n"
568 "\\&\n"
569 " Licensed under GNU General Public License v2 or later.\n"
570 "*/\n"
571 "#include E<lt>stdio.hE<gt>\n"
572 "#include E<lt>stdlib.hE<gt>\n"
573 "#include E<lt>string.hE<gt>\n"
574 "\\&\n"
575 "int\n"
576 "main(int argc, char *argv[])\n"
577 "{\n"
578 " int res;\n"
579 "\\&\n"
580 " if (argc E<lt> 3) {\n"
581 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
582 " exit(EXIT_FAILURE);\n"
583 " }\n"
584 "\\&\n"
585 " if (argc == 3)\n"
586 " res = strcmp(argv[1], argv[2]);\n"
587 " else\n"
588 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
589 "\\&\n"
590 " if (res == 0) {\n"
591 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
592 " if (argc E<gt> 3)\n"
593 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
594 " printf(\"\\[rs]n\");\n"
595 " } else if (res E<lt> 0) {\n"
596 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
597 " } else {\n"
598 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
599 " }\n"
600 "\\&\n"
601 " exit(EXIT_SUCCESS);\n"
602 "}\n"
603 msgstr ""
604
605 #. type: Plain text
606 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
607 #, fuzzy
608 #| msgid ""
609 #| "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
610 #| "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3)"
611 msgid ""
612 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
613 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
614 msgstr ""
615 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
616 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3)"
617
618 #. type: TH
619 #: fedora-44 fedora-rawhide
620 #, no-wrap
621 msgid "2024-11-17"
622 msgstr "17 ноября 2024 г."
623
624 #. type: TH
625 #: fedora-44 fedora-rawhide
626 #, no-wrap
627 msgid "Linux man-pages 6.13"
628 msgstr "Страницы руководства Linux 6.13"
629
630 #. type: TH
631 #: mageia-cauldron
632 #, no-wrap
633 msgid "2026-02-08"
634 msgstr "8 февраля 2026 г."
635
636 #. type: TH
637 #: mageia-cauldron
638 #, no-wrap
639 msgid "Linux man-pages 6.17"
640 msgstr "Страницы руководства Linux 6.17"
641
642 #. type: TH
643 #: opensuse-leap-16-1 opensuse-tumbleweed
644 #, no-wrap
645 msgid "Linux man-pages (unreleased)"
646 msgstr "Страницы руководства Linux (не выпущены)"