Debian Codegraph @

po/ko/man3/strcmp.3.po

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