Debian Codegraph @

templates/man3/sscanf.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:44+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "sscanf"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-16"
30 msgstr ""
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr ""
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr ""
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "sscanf, vsscanf - input string format conversion"
49 msgstr ""
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "LIBRARY"
56 msgstr ""
57
58 #. type: Plain text
59 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
60 #: opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr ""
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr ""
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "B<#include E<lt>stdio.hE<gt>>\n"
76 msgstr ""
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid ""
83 "B<int sscanf(const char *restrict >I<str>B<,>\n"
84 "B< const char *restrict >I<format>B<, ...);>\n"
85 msgstr ""
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<#include E<lt>stdarg.hE<gt>>\n"
92 msgstr ""
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid ""
99 "B<int vsscanf(const char *restrict >I<str>B<,>\n"
100 "B< const char *restrict >I<format>B<, va_list >I<ap>B<);>\n"
101 msgstr ""
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid ""
107 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
108 msgstr ""
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid "B<vsscanf>():"
114 msgstr ""
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 #, no-wrap
120 msgid " _ISOC99_SOURCE || _POSIX_C_SOURCE E<gt>= 200112L\n"
121 msgstr ""
122
123 #. type: SH
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid "DESCRIPTION"
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "The B<sscanf>() family of functions scans formatted input according to "
135 "I<format> as described below. This format may contain I<conversion "
136 "specifications>; the results from such conversions, if any, are stored in "
137 "the locations pointed to by the I<pointer> arguments that follow I<format>. "
138 "Each I<pointer> argument must be of a type that is appropriate for the value "
139 "returned by the corresponding conversion specification."
140 msgstr ""
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "If the number of conversion specifications in I<format> exceeds the number "
147 "of I<pointer> arguments, the results are undefined. If the number of "
148 "I<pointer> arguments exceeds the number of conversion specifications, then "
149 "the excess I<pointer> arguments are evaluated, but are otherwise ignored."
150 msgstr ""
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 "B<sscanf>() These functions read their input from the string pointed to by "
157 "I<str>."
158 msgstr ""
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid "The B<vsscanf>() function is analogous to B<vsprintf>(3)."
164 msgstr ""
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "The I<format> string consists of a sequence of I<directives> which describe "
171 "how to process the sequence of input characters. If processing of a "
172 "directive fails, no further input is read, and B<sscanf>() returns. A "
173 "\"failure\" can be either of the following: I<input failure>, meaning that "
174 "input characters were unavailable, or I<matching failure>, meaning that the "
175 "input was inappropriate (see below)."
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid "A directive is one of the following:"
182 msgstr ""
183
184 #. type: IP
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "\\[bu]"
189 msgstr ""
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "A sequence of white-space characters (space, tab, newline, etc.; see "
196 "B<isspace>(3)). This directive matches any amount of white space, including "
197 "none, in the input."
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "An ordinary character (i.e., one other than white space or \\[aq]%\\[aq]). "
205 "This character must exactly match the next character of input."
206 msgstr ""
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid ""
212 "A conversion specification, which commences with a \\[aq]%\\[aq] (percent) "
213 "character. A sequence of characters from the input is converted according "
214 "to this specification, and the result is placed in the corresponding "
215 "I<pointer> argument. If the next item of input does not match the "
216 "conversion specification, the conversion fails\\[em]this is a I<matching "
217 "failure>."
218 msgstr ""
219
220 #. type: Plain text
221 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
222 #: opensuse-tumbleweed
223 msgid ""
224 "Each I<conversion specification> in I<format> begins with either the "
225 "character \\[aq]%\\[aq] or the character sequence \\[dq]B<%>\\f[I]nB<$>\\"
226 "[dq] (see below for the distinction) followed by:"
227 msgstr ""
228
229 #. type: Plain text
230 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
231 #: opensuse-leap-16-1 opensuse-tumbleweed
232 msgid ""
233 "An optional \\[aq]*\\[aq] assignment-suppression character: B<sscanf>() "
234 "reads input as directed by the conversion specification, but discards the "
235 "input. No corresponding I<pointer> argument is required, and this "
236 "specification is not included in the count of successful assignments "
237 "returned by B<sscanf>()."
238 msgstr ""
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "For decimal conversions, an optional quote character (\\[aq]). This "
245 "specifies that the input number may include thousands' separators as defined "
246 "by the B<LC_NUMERIC> category of the current locale. (See "
247 "B<setlocale>(3).) The quote character may precede or follow the \\[aq]*\\"
248 "[aq] assignment-suppression character."
249 msgstr ""
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "An optional \\[aq]m\\[aq] character. This is used with string conversions "
256 "(I<%s>, I<%c>, I<%[>), and relieves the caller of the need to allocate a "
257 "corresponding buffer to hold the input: instead, B<sscanf>() allocates a "
258 "buffer of sufficient size, and assigns the address of this buffer to the "
259 "corresponding I<pointer> argument, which should be a pointer to a I<char\\ "
260 "*> variable (this variable does not need to be initialized before the "
261 "call). The caller should subsequently B<free>(3) this buffer when it is no "
262 "longer required."
263 msgstr ""
264
265 #. type: Plain text
266 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
267 #: opensuse-tumbleweed
268 msgid ""
269 "An optional decimal integer which specifies the I<maximum field width>. "
270 "Reading of characters stops either when this maximum is reached or when a "
271 "nonmatching character is found, whichever happens first. Most conversions "
272 "discard initial white space characters (the exceptions are noted below), and "
273 "these discarded characters don't count toward the maximum field width. "
274 "String input conversions store a terminating null byte (\\[aq]\\[rs]0\\"
275 "[aq]) to mark the end of the input; the maximum field width does not "
276 "include this terminator. Some conversions require exactly the number of "
277 "characters specified in the maximum field width, or they fail."
278 msgstr ""
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "An optional I<type modifier character>. For example, the B<l> type modifier "
285 "is used with integer conversions such as B<%d> to specify that the "
286 "corresponding I<pointer> argument refers to a I<long> rather than a pointer "
287 "to an I<int>."
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 ""
294 "A I<conversion specifier> that specifies the type of input conversion to be "
295 "performed."
296 msgstr ""
297
298 #. type: Plain text
299 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
300 #: opensuse-tumbleweed
301 msgid ""
302 "The conversion specifications in I<format> are of two forms, either "
303 "beginning with \\[aq]%\\[aq] or beginning with \\[dq]B<%>\\f[I]nB<$>\\[dq]. "
304 "The two forms should not be mixed in the same I<format> string, except that "
305 "a string containing \\[dq]B<%>\\f[I]nB<$>\\[dq] specifications can include "
306 "B<%%> and B<%*>. If I<format> contains \\[aq]%\\[aq] specifications, then "
307 "these correspond in order with successive I<pointer> arguments. In the \\"
308 "[dq]B<%>\\f[I]nB<$>\\[dq] form (which is specified in POSIX.1-2001, but not "
309 "C99), I<n> is a decimal integer that specifies that the converted input "
310 "should be placed in the location referred to by the I<n>-th I<pointer> "
311 "argument following I<format>."
312 msgstr ""
313
314 #. type: SS
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 #, no-wrap
318 msgid "Conversions"
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "The following I<type modifier characters> can appear in a conversion "
326 "specification:"
327 msgstr ""
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "B<h>"
334 msgstr ""
335
336 #. type: Plain text
337 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
338 #: opensuse-tumbleweed
339 msgid ""
340 "Indicates that the conversion will be one of B<d>, B<i>, B<o>, B<u>, B<x>, "
341 "B<X>, or B<n>, and the next pointer is a pointer to a I<short> or I<unsigned "
342 "short> (rather than I<int>)."
343 msgstr ""
344
345 #. type: TP
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "B<hh>"
350 msgstr ""
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid ""
356 "As for B<h>, but the next pointer is a pointer to a I<signed char> or "
357 "I<unsigned char>."
358 msgstr ""
359
360 #. type: TP
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid "B<j>"
365 msgstr ""
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid ""
371 "As for B<h>, but the next pointer is a pointer to an I<intmax_t> or a "
372 "I<uintmax_t>. This modifier was introduced in C99."
373 msgstr ""
374
375 #. type: TP
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "B<l>"
380 msgstr ""
381
382 #. This use of l was introduced in Amendment 1 to ISO C90.
383 #. type: Plain text
384 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
385 #: opensuse-tumbleweed
386 msgid ""
387 "Indicates either that the conversion will be one of B<d>, B<i>, B<o>, B<u>, "
388 "B<x>, B<X>, or B<n>, and the next pointer is a pointer to a I<long> or "
389 "I<unsigned long> (rather than I<int>), or that the conversion will be one of "
390 "B<e>, B<f>, or B<g>, and the next pointer is a pointer to I<double> (rather "
391 "than I<float>). If used with B<%c> or B<%s>, the corresponding parameter is "
392 "considered as a pointer to a wide character or wide-character string "
393 "respectively."
394 msgstr ""
395
396 #. type: TP
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "B<ll>"
401 msgstr ""
402
403 #. type: Plain text
404 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
405 #: opensuse-tumbleweed
406 msgid ""
407 "(ell-ell) Indicates that the conversion will be one of B<b>, B<d>, B<i>, "
408 "B<o>, B<u>, B<x>, B<X>, or B<n>, and the next pointer is a pointer to a "
409 "I<long long> or I<unsigned long long> (rather than I<int>)."
410 msgstr ""
411
412 #. type: TP
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "B<L>"
417 msgstr ""
418
419 #. MTK, Jul 05: The following is no longer true for modern
420 #. ANSI C (i.e., C99):
421 #. (Note that long long is not an
422 #. ANSI C
423 #. type. Any program using this will not be portable to all
424 #. architectures).
425 #. type: Plain text
426 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
427 #: opensuse-tumbleweed
428 msgid ""
429 "Indicates that the conversion will be either B<e>, B<f>, or B<g>, and the "
430 "next pointer is a pointer to I<long double> or (as a GNU extension) the "
431 "conversion will be B<d>, B<i>, B<o>, B<u>, or B<x>, and the next pointer is "
432 "a pointer to I<long long>."
433 msgstr ""
434
435 #. type: TP
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "B<q>"
440 msgstr ""
441
442 #. type: Plain text
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 msgid "equivalent to B<L>. This specifier does not exist in ANSI C."
446 msgstr ""
447
448 #. type: TP
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 #, no-wrap
452 msgid "B<t>"
453 msgstr ""
454
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 msgid ""
459 "As for B<h>, but the next pointer is a pointer to a I<ptrdiff_t>. This "
460 "modifier was introduced in C99."
461 msgstr ""
462
463 #. type: TP
464 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
465 #, no-wrap
466 msgid "B<w>I<N>"
467 msgstr ""
468
469 #. type: Plain text
470 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "A following integer conversion corresponds to an integer of a width of I<N> "
473 "bits (C23)."
474 msgstr ""
475
476 #. type: TP
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, no-wrap
480 msgid "B<z>"
481 msgstr ""
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid ""
487 "As for B<h>, but the next pointer is a pointer to a I<size_t>. This "
488 "modifier was introduced in C99."
489 msgstr ""
490
491 #. type: Plain text
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 msgid "The following I<conversion specifiers> are available:"
495 msgstr ""
496
497 #. type: TP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "B<%>"
502 msgstr ""
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "Matches a literal \\[aq]%\\[aq]. That is, B<%\\&%> in the format string "
509 "matches a single input \\[aq]%\\[aq] character. No conversion is done (but "
510 "initial white space characters are discarded), and assignment does not occur."
511 msgstr ""
512
513 #. type: TP
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "B<d>"
518 msgstr ""
519
520 #. .TP
521 #. .B D
522 #. Equivalent to
523 #. .IR ld ;
524 #. this exists only for backward compatibility.
525 #. (Note: thus only in libc4
526 #. In libc5 and glibc the
527 #. .B %D
528 #. is silently ignored, causing old programs to fail mysteriously.)
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid ""
533 "Matches an optionally signed decimal integer; the next pointer must be a "
534 "pointer to I<int>."
535 msgstr ""
536
537 #. type: TP
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 #, no-wrap
541 msgid "B<i>"
542 msgstr ""
543
544 #. type: Plain text
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 msgid ""
548 "Matches an optionally signed integer; the next pointer must be a pointer to "
549 "I<int>. The integer is read in base 16 if it begins with I<0x> or I<0X>, in "
550 "base 8 if it begins with I<0>, and in base 10 otherwise. Only characters "
551 "that correspond to the base are used."
552 msgstr ""
553
554 #. type: TP
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, no-wrap
558 msgid "B<o>"
559 msgstr ""
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid ""
565 "Matches an unsigned octal integer; the next pointer must be a pointer to "
566 "I<unsigned int>."
567 msgstr ""
568
569 #. type: TP
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 #, no-wrap
573 msgid "B<u>"
574 msgstr ""
575
576 #. type: Plain text
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 msgid ""
580 "Matches an unsigned decimal integer; the next pointer must be a pointer to "
581 "I<unsigned int>."
582 msgstr ""
583
584 #. type: TP
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 #, no-wrap
588 msgid "B<x>"
589 msgstr ""
590
591 #. type: Plain text
592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
594 msgid ""
595 "Matches an unsigned hexadecimal integer (that may optionally begin with a "
596 "prefix of I<0x> or I<0X>, which is discarded); the next pointer must be a "
597 "pointer to I<unsigned int>."
598 msgstr ""
599
600 #. type: TP
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 #, no-wrap
604 msgid "B<X>"
605 msgstr ""
606
607 #. type: Plain text
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 msgid "Equivalent to B<x>."
611 msgstr ""
612
613 #. type: TP
614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
616 #, no-wrap
617 msgid "B<f>"
618 msgstr ""
619
620 #. type: Plain text
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 msgid ""
624 "Matches an optionally signed floating-point number; the next pointer must be "
625 "a pointer to I<float>."
626 msgstr ""
627
628 #. type: TP
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 #, no-wrap
632 msgid "B<e>"
633 msgstr ""
634
635 #. type: Plain text
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 msgid "Equivalent to B<f>."
639 msgstr ""
640
641 #. type: TP
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 #, no-wrap
645 msgid "B<g>"
646 msgstr ""
647
648 #. type: TP
649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
651 #, no-wrap
652 msgid "B<E>"
653 msgstr ""
654
655 #. type: TP
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 #, no-wrap
659 msgid "B<a>"
660 msgstr ""
661
662 #. type: Plain text
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 msgid "(C99) Equivalent to B<f>."
666 msgstr ""
667
668 #. type: TP
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 #, no-wrap
672 msgid "B<s>"
673 msgstr ""
674
675 #. type: Plain text
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 msgid ""
679 "Matches a sequence of non-white-space characters; the next pointer must be a "
680 "pointer to the initial element of a character array that is long enough to "
681 "hold the input sequence and the terminating null byte (\\[aq]\\[rs]0\\[aq]), "
682 "which is added automatically. The input string stops at white space or at "
683 "the maximum field width, whichever occurs first."
684 msgstr ""
685
686 #. type: TP
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 #, no-wrap
690 msgid "B<c>"
691 msgstr ""
692
693 #. glibc commit 2b16c76609350ec887d49afd4447743da38f7fab
694 #. type: Plain text
695 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
696 #: opensuse-tumbleweed
697 msgid ""
698 "Matches a sequence of characters whose length is specified by the I<maximum "
699 "field width> (default 1); the next pointer must be a pointer to I<char>, and "
700 "there must be enough room for all the characters (no terminating null byte "
701 "is added). The usual skip of leading white space is suppressed. To skip "
702 "white space first, use an explicit space in the format. This conversion "
703 "only succeeds if the number of characters specified by the maximum field can "
704 "be matched."
705 msgstr ""
706
707 #. type: TP
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 #, no-wrap
711 msgid "B<\\&[>"
712 msgstr ""
713
714 #. type: Plain text
715 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
716 #: opensuse-tumbleweed
717 msgid ""
718 "Matches a nonempty sequence of characters from the specified set of accepted "
719 "characters; the next pointer must be a pointer to I<char>, and there must be "
720 "enough room for all the characters in the string, plus a terminating null "
721 "byte. The usual skip of leading white space is suppressed. The string is "
722 "to be made up of characters in (or not in) a particular set; the set is "
723 "defined by the characters between the open bracket B<[> character and a "
724 "close bracket B<]> character. The set I<excludes> those characters if the "
725 "first character after the open bracket is a circumflex (B<\\[ha]>). To "
726 "include a close bracket in the set, make it the first character after the "
727 "open bracket or the circumflex; any other position will end the set. The "
728 "hyphen character B<-> is also special; when placed between two other "
729 "characters, it adds all intervening characters to the set. To include a "
730 "hyphen, make it the last character before the final close bracket. For "
731 "instance, B<[\\[ha]]0-9-]> means the set \"everything except close bracket, "
732 "zero through nine, and hyphen\". The string ends with the appearance of a "
733 "character not in the (or, with a circumflex, in) set or when the field "
734 "width runs out."
735 msgstr ""
736
737 #. type: TP
738 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
739 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
740 #, no-wrap
741 msgid "B<p>"
742 msgstr ""
743
744 #. type: Plain text
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 msgid ""
748 "Matches a pointer value (as printed by B<%p> in B<printf>(3)); the next "
749 "pointer must be a pointer to a pointer to I<void>."
750 msgstr ""
751
752 #. type: TP
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 #, no-wrap
756 msgid "B<n>"
757 msgstr ""
758
759 #. type: Plain text
760 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
761 #: opensuse-tumbleweed
762 msgid ""
763 "Nothing is expected; instead, the number of characters consumed thus far "
764 "from the input is stored through the next pointer, which must be a pointer "
765 "to I<int>, or variant whose size matches the (optionally) supplied integer "
766 "length modifier. This is I<not> a conversion and does I<not> increase the "
767 "count returned by the function. The assignment can be suppressed with the "
768 "B<*> assignment-suppression character, but the effect on the return value is "
769 "undefined. Therefore B<%*n> conversions should not be used."
770 msgstr ""
771
772 #. type: SH
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 #, no-wrap
776 msgid "RETURN VALUE"
777 msgstr ""
778
779 #. type: Plain text
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 msgid ""
783 "On success, these functions return the number of input items successfully "
784 "matched and assigned; this can be fewer than provided for, or even zero, in "
785 "the event of an early matching failure."
786 msgstr ""
787
788 #. type: Plain text
789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
791 msgid ""
792 "The value B<EOF> is returned if the end of input is reached before either "
793 "the first successful conversion or a matching failure occurs."
794 msgstr ""
795
796 #. type: SH
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 #, no-wrap
800 msgid "ERRORS"
801 msgstr ""
802
803 #. type: TP
804 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
805 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
806 #, no-wrap
807 msgid "B<EILSEQ>"
808 msgstr ""
809
810 #. type: Plain text
811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
813 msgid "Input byte sequence does not form a valid character."
814 msgstr ""
815
816 #. type: TP
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 #, no-wrap
820 msgid "B<EINVAL>"
821 msgstr ""
822
823 #. type: Plain text
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 msgid "Not enough arguments; or I<format> is NULL."
827 msgstr ""
828
829 #. type: TP
830 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
831 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
832 #, no-wrap
833 msgid "B<ENOMEM>"
834 msgstr ""
835
836 #. type: Plain text
837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
839 msgid "Out of memory."
840 msgstr ""
841
842 #. type: SH
843 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
844 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
845 #, no-wrap
846 msgid "ATTRIBUTES"
847 msgstr ""
848
849 #. type: Plain text
850 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
851 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
852 msgid ""
853 "For an explanation of the terms used in this section, see B<attributes>(7)."
854 msgstr ""
855
856 #. type: tbl table
857 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
858 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
859 #, no-wrap
860 msgid "Interface"
861 msgstr ""
862
863 #. type: tbl table
864 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
865 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
866 #, no-wrap
867 msgid "Attribute"
868 msgstr ""
869
870 #. type: tbl table
871 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
872 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
873 #, no-wrap
874 msgid "Value"
875 msgstr ""
876
877 #. type: tbl table
878 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
879 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
880 #, no-wrap
881 msgid ".na\n"
882 msgstr ""
883
884 #. type: tbl table
885 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
886 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
887 #, no-wrap
888 msgid ".nh\n"
889 msgstr ""
890
891 #. type: tbl table
892 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
893 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
894 #, no-wrap
895 msgid ""
896 "B<sscanf>(),\n"
897 "B<vsscanf>()"
898 msgstr ""
899
900 #. type: tbl table
901 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
902 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
903 #, no-wrap
904 msgid "Thread safety"
905 msgstr ""
906
907 #. type: tbl table
908 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
909 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
910 #, no-wrap
911 msgid "MT-Safe locale"
912 msgstr ""
913
914 #. type: SH
915 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
916 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
917 #, no-wrap
918 msgid "STANDARDS"
919 msgstr ""
920
921 #. type: Plain text
922 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
923 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
924 msgid "C11, POSIX.1-2008."
925 msgstr ""
926
927 #. type: SH
928 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
929 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
930 #, no-wrap
931 msgid "HISTORY"
932 msgstr ""
933
934 #. type: Plain text
935 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
936 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
937 msgid "C89, POSIX.1-2001."
938 msgstr ""
939
940 #. type: Plain text
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 msgid ""
944 "The B<q> specifier is the 4.4BSD notation for I<long long>, while B<ll> or "
945 "the usage of B<L> in integer conversions is the GNU notation."
946 msgstr ""
947
948 #. type: Plain text
949 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
950 #: opensuse-leap-16-1 opensuse-tumbleweed
951 msgid ""
952 "The Linux version of these functions is based on the I<GNU> I<libio> "
953 "library. Take a look at the B<info>(1) documentation of I<GNU> I<libc "
954 "(glibc-1.08)> for a more concise description."
955 msgstr ""
956
957 #. type: SH
958 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
959 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
960 #, no-wrap
961 msgid "NOTES"
962 msgstr ""
963
964 #. type: SS
965 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
966 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
967 #, no-wrap
968 msgid "The 'a' assignment-allocation modifier"
969 msgstr ""
970
971 #. type: Plain text
972 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
973 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
974 msgid ""
975 "Originally, the GNU C library supported dynamic allocation for string inputs "
976 "(as a nonstandard extension) via the B<a> character. (This feature is "
977 "present at least as far back as glibc 2.0.) Thus, one could write the "
978 "following to have B<sscanf>() allocate a buffer for a string, with a "
979 "pointer to that buffer being returned in I<*buf>:"
980 msgstr ""
981
982 #. type: Plain text
983 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
984 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
985 #, no-wrap
986 msgid ""
987 "char *buf;\n"
988 "sscanf(str, \"%as\", &buf);\n"
989 msgstr ""
990
991 #. type: Plain text
992 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
993 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
994 msgid ""
995 "The use of the letter B<a> for this purpose was problematic, since B<a> is "
996 "also specified by the ISO C standard as a synonym for B<f> (floating-point "
997 "input). POSIX.1-2008 instead specifies the B<m> modifier for assignment "
998 "allocation (as documented in DESCRIPTION, above)."
999 msgstr ""
1000
1001 #. type: Plain text
1002 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1003 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1004 msgid ""
1005 "Note that the B<a> modifier is not available if the program is compiled with "
1006 "I<gcc\\ -std=c99> or I<gcc\\ -D_ISOC99_SOURCE> (unless B<_GNU_SOURCE> is "
1007 "also specified), in which case the B<a> is interpreted as a specifier for "
1008 "floating-point numbers (see above)."
1009 msgstr ""
1010
1011 #. type: Plain text
1012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1014 msgid ""
1015 "Support for the B<m> modifier was added to glibc 2.7, and new programs "
1016 "should use that modifier instead of B<a>."
1017 msgstr ""
1018
1019 #. type: Plain text
1020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1022 msgid ""
1023 "As well as being standardized by POSIX, the B<m> modifier has the following "
1024 "further advantages over the use of B<a>:"
1025 msgstr ""
1026
1027 #. type: Plain text
1028 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1029 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1030 msgid "It may also be applied to B<%c> conversion specifiers (e.g., B<%3mc>)."
1031 msgstr ""
1032
1033 #. type: Plain text
1034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1036 msgid ""
1037 "It avoids ambiguity with respect to the B<%a> floating-point conversion "
1038 "specifier (and is unaffected by I<gcc\\ -std=c99> etc.)."
1039 msgstr ""
1040
1041 #. type: SH
1042 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1043 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1044 #, no-wrap
1045 msgid "BUGS"
1046 msgstr ""
1047
1048 #. type: SS
1049 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1050 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1051 #, no-wrap
1052 msgid "Numeric conversion specifiers"
1053 msgstr ""
1054
1055 #. type: Plain text
1056 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1057 #: opensuse-tumbleweed
1058 msgid ""
1059 "Use of the numeric conversion specifiers produces undefined behavior for "
1060 "invalid input. See E<.UR https:\\://port70.net/\\:%7Ensz/\\:c/"
1061 "\\:c11/\\:n1570.html\\:#7.21.6.2p10> C11 7.21.6.2/10 E<.UE .> This is a bug "
1062 "in the ISO C standard, and not an inherent design issue with the API. "
1063 "However, current implementations are not safe from that bug, so it is not "
1064 "recommended to use them. Instead, programs should use functions such as "
1065 "B<strtol>(3) to parse numeric input. Alternatively, mitigate it by "
1066 "specifying a maximum field width."
1067 msgstr ""
1068
1069 #. type: SS
1070 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1071 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1072 #, no-wrap
1073 msgid "Nonstandard modifiers"
1074 msgstr ""
1075
1076 #. type: Plain text
1077 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1078 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1079 msgid ""
1080 "These functions are fully C99 conformant, but provide the additional "
1081 "modifiers B<q> and B<a> as well as an additional behavior of the B<L> and "
1082 "B<ll> modifiers. The latter may be considered to be a bug, as it changes "
1083 "the behavior of modifiers defined in C99."
1084 msgstr ""
1085
1086 #. type: Plain text
1087 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1088 #: opensuse-leap-16-1 opensuse-tumbleweed
1089 msgid ""
1090 "Some combinations of the type modifiers and conversion specifiers defined by "
1091 "C99 do not make sense (e.g., B<%Ld>). While they may have a well-defined "
1092 "behavior on Linux, this need not to be so on other systems. Therefore it "
1093 "usually is better to use modifiers that are not defined by C99 at all, that "
1094 "is, use B<q> instead of B<L> in combination with B<d>, B<i>, B<o>, B<u>, "
1095 "B<x>, and B<X> conversions or B<ll>."
1096 msgstr ""
1097
1098 #. type: Plain text
1099 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1101 msgid ""
1102 "The usage of B<q> is not the same as on 4.4BSD, as it may be used in float "
1103 "conversions equivalently to B<L>."
1104 msgstr ""
1105
1106 #. type: SH
1107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1109 #, no-wrap
1110 msgid "EXAMPLES"
1111 msgstr ""
1112
1113 #. type: Plain text
1114 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1115 #: opensuse-tumbleweed
1116 msgid ""
1117 "To use the dynamic allocation conversion specifier, specify B<m> as a length "
1118 "modifier (thus B<%ms> or B<%m[>\\f[I]rangeB<]>). The caller must "
1119 "B<free>(3) the returned string, as in the following example:"
1120 msgstr ""
1121
1122 #. type: Plain text
1123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1125 #, no-wrap
1126 msgid ""
1127 "char *p;\n"
1128 "int n;\n"
1129 "\\&\n"
1130 "errno = 0;\n"
1131 "n = sscanf(str, \"%m[a-z]\", &p);\n"
1132 "if (n == 1) {\n"
1133 " printf(\"read: %s\\[rs]n\", p);\n"
1134 " free(p);\n"
1135 "} else if (errno != 0) {\n"
1136 " perror(\"sscanf\");\n"
1137 "} else {\n"
1138 " fprintf(stderr, \"No matching characters\\[rs]n\");\n"
1139 "}\n"
1140 msgstr ""
1141
1142 #. type: Plain text
1143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1145 msgid ""
1146 "As shown in the above example, it is necessary to call B<free>(3) only if "
1147 "the B<sscanf>() call successfully read a string."
1148 msgstr ""
1149
1150 #. type: SH
1151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1153 #, no-wrap
1154 msgid "SEE ALSO"
1155 msgstr ""
1156
1157 #. type: Plain text
1158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1160 msgid ""
1161 "B<getc>(3), B<printf>(3), B<setlocale>(3), B<strtod>(3), B<strtol>(3), "
1162 "B<strtoul>(3)"
1163 msgstr ""
1164
1165 #. type: TH
1166 #: debian-trixie
1167 #, no-wrap
1168 msgid "2024-06-15"
1169 msgstr ""
1170
1171 #. type: TH
1172 #: debian-trixie
1173 #, no-wrap
1174 msgid "Linux man-pages 6.9.1"
1175 msgstr ""
1176
1177 #. type: Plain text
1178 #: debian-trixie
1179 msgid "Standard C library (I<libc>, I<-lc>)"
1180 msgstr ""
1181
1182 #. type: Plain text
1183 #: debian-trixie fedora-44 fedora-rawhide
1184 msgid ""
1185 "Each I<conversion specification> in I<format> begins with either the "
1186 "character \\[aq]%\\[aq] or the character sequence \"B<%>I<n>B<$>\" (see "
1187 "below for the distinction) followed by:"
1188 msgstr ""
1189
1190 #. type: Plain text
1191 #: debian-trixie
1192 msgid ""
1193 "An optional \\[aq]*\\[aq] assignment-suppression character: B<sscanf>() "
1194 "reads input as directed by the conversion specification, but discards the "
1195 "input. No corresponding I<pointer> argument is required, and this "
1196 "specification is not included in the count of successful assignments "
1197 "returned by B<scanf>()."
1198 msgstr ""
1199
1200 #. type: Plain text
1201 #: debian-trixie fedora-44 fedora-rawhide
1202 msgid ""
1203 "An optional decimal integer which specifies the I<maximum field width>. "
1204 "Reading of characters stops either when this maximum is reached or when a "
1205 "nonmatching character is found, whichever happens first. Most conversions "
1206 "discard initial white space characters (the exceptions are noted below), and "
1207 "these discarded characters don't count toward the maximum field width. "
1208 "String input conversions store a terminating null byte (\\[aq]\\[rs]0\\"
1209 "[aq]) to mark the end of the input; the maximum field width does not "
1210 "include this terminator."
1211 msgstr ""
1212
1213 #. type: Plain text
1214 #: debian-trixie fedora-44 fedora-rawhide
1215 msgid ""
1216 "The conversion specifications in I<format> are of two forms, either "
1217 "beginning with \\[aq]%\\[aq] or beginning with \"B<%>I<n>B<$>\". The two "
1218 "forms should not be mixed in the same I<format> string, except that a string "
1219 "containing \"B<%>I<n>B<$>\" specifications can include B<%%> and B<%*>. If "
1220 "I<format> contains \\[aq]%\\[aq] specifications, then these correspond in "
1221 "order with successive I<pointer> arguments. In the \"B<%>I<n>B<$>\" form "
1222 "(which is specified in POSIX.1-2001, but not C99), I<n> is a decimal integer "
1223 "that specifies that the converted input should be placed in the location "
1224 "referred to by the I<n>-th I<pointer> argument following I<format>."
1225 msgstr ""
1226
1227 #. type: Plain text
1228 #: debian-trixie fedora-44 fedora-rawhide
1229 msgid ""
1230 "Indicates that the conversion will be one of B<d>, B<i>, B<o>, B<u>, B<x>, "
1231 "B<X>, or B<n> and the next pointer is a pointer to a I<short> or I<unsigned "
1232 "short> (rather than I<int>)."
1233 msgstr ""
1234
1235 #. This use of l was introduced in Amendment 1 to ISO C90.
1236 #. type: Plain text
1237 #: debian-trixie fedora-44 fedora-rawhide
1238 msgid ""
1239 "Indicates either that the conversion will be one of B<d>, B<i>, B<o>, B<u>, "
1240 "B<x>, B<X>, or B<n> and the next pointer is a pointer to a I<long> or "
1241 "I<unsigned long> (rather than I<int>), or that the conversion will be one of "
1242 "B<e>, B<f>, or B<g> and the next pointer is a pointer to I<double> (rather "
1243 "than I<float>). If used with B<%c> or B<%s>, the corresponding parameter is "
1244 "considered as a pointer to a wide character or wide-character string "
1245 "respectively."
1246 msgstr ""
1247
1248 #. type: Plain text
1249 #: debian-trixie fedora-44 fedora-rawhide
1250 msgid ""
1251 "(ell-ell) Indicates that the conversion will be one of B<b>, B<d>, B<i>, "
1252 "B<o>, B<u>, B<x>, B<X>, or B<n> and the next pointer is a pointer to a "
1253 "I<long long> or I<unsigned long long> (rather than I<int>)."
1254 msgstr ""
1255
1256 #. MTK, Jul 05: The following is no longer true for modern
1257 #. ANSI C (i.e., C99):
1258 #. (Note that long long is not an
1259 #. ANSI C
1260 #. type. Any program using this will not be portable to all
1261 #. architectures).
1262 #. type: Plain text
1263 #: debian-trixie fedora-44 fedora-rawhide
1264 msgid ""
1265 "Indicates that the conversion will be either B<e>, B<f>, or B<g> and the "
1266 "next pointer is a pointer to I<long double> or (as a GNU extension) the "
1267 "conversion will be B<d>, B<i>, B<o>, B<u>, or B<x> and the next pointer is a "
1268 "pointer to I<long long>."
1269 msgstr ""
1270
1271 #. type: Plain text
1272 #: debian-trixie fedora-44 fedora-rawhide
1273 msgid ""
1274 "Matches a sequence of characters whose length is specified by the I<maximum "
1275 "field width> (default 1); the next pointer must be a pointer to I<char>, and "
1276 "there must be enough room for all the characters (no terminating null byte "
1277 "is added). The usual skip of leading white space is suppressed. To skip "
1278 "white space first, use an explicit space in the format."
1279 msgstr ""
1280
1281 #. type: Plain text
1282 #: debian-trixie fedora-44 fedora-rawhide
1283 msgid ""
1284 "Matches a nonempty sequence of characters from the specified set of accepted "
1285 "characters; the next pointer must be a pointer to I<char>, and there must be "
1286 "enough room for all the characters in the string, plus a terminating null "
1287 "byte. The usual skip of leading white space is suppressed. The string is "
1288 "to be made up of characters in (or not in) a particular set; the set is "
1289 "defined by the characters between the open bracket B<[> character and a "
1290 "close bracket B<]> character. The set I<excludes> those characters if the "
1291 "first character after the open bracket is a circumflex (B<\\[ha]>). To "
1292 "include a close bracket in the set, make it the first character after the "
1293 "open bracket or the circumflex; any other position will end the set. The "
1294 "hyphen character B<-> is also special; when placed between two other "
1295 "characters, it adds all intervening characters to the set. To include a "
1296 "hyphen, make it the last character before the final close bracket. For "
1297 "instance, B<[\\[ha]]0-9-]> means the set \"everything except close bracket, "
1298 "zero through nine, and hyphen\". The string ends with the appearance of a "
1299 "character not in the (or, with a circumflex, in) set or when the field width "
1300 "runs out."
1301 msgstr ""
1302
1303 #. type: Plain text
1304 #: debian-trixie fedora-44 fedora-rawhide
1305 msgid ""
1306 "Nothing is expected; instead, the number of characters consumed thus far "
1307 "from the input is stored through the next pointer, which must be a pointer "
1308 "to I<int>, or variant whose size matches the (optionally) supplied integer "
1309 "length modifier. This is I<not> a conversion and does I<not> increase the "
1310 "count returned by the function. The assignment can be suppressed with the "
1311 "B<*> assignment-suppression character, but the effect on the return value is "
1312 "undefined. Therefore B<%*n> conversions should not be used."
1313 msgstr ""
1314
1315 #. type: Plain text
1316 #: debian-trixie
1317 msgid ""
1318 "The Linux version of these functions is based on the I<GNU> I<libio> "
1319 "library. Take a look at the I<info> documentation of I<GNU> I<libc "
1320 "(glibc-1.08)> for a more concise description."
1321 msgstr ""
1322
1323 #. type: Plain text
1324 #: debian-trixie
1325 msgid ""
1326 "Use of the numeric conversion specifiers produces Undefined Behavior for "
1327 "invalid input. See E<.UR https://port70.net/\\:%7Ensz/\\:c/"
1328 "\\:c11/\\:n1570.html\\:#7.21.6.2p10> C11 7.21.6.2/10 E<.UE .> This is a bug "
1329 "in the ISO C standard, and not an inherent design issue with the API. "
1330 "However, current implementations are not safe from that bug, so it is not "
1331 "recommended to use them. Instead, programs should use functions such as "
1332 "B<strtol>(3) to parse numeric input. Alternatively, mitigate it by "
1333 "specifying a maximum field width."
1334 msgstr ""
1335
1336 #. type: Plain text
1337 #: debian-trixie
1338 msgid ""
1339 "Some combinations of the type modifiers and conversion specifiers defined by "
1340 "C99 do not make sense (e.g., B<%Ld>). While they may have a well-defined "
1341 "behavior on Linux, this need not to be so on other architectures. Therefore "
1342 "it usually is better to use modifiers that are not defined by C99 at all, "
1343 "that is, use B<q> instead of B<L> in combination with B<d>, B<i>, B<o>, "
1344 "B<u>, B<x>, and B<X> conversions or B<ll>."
1345 msgstr ""
1346
1347 #. type: Plain text
1348 #: debian-trixie fedora-44 fedora-rawhide
1349 msgid ""
1350 "To use the dynamic allocation conversion specifier, specify B<m> as a length "
1351 "modifier (thus B<%ms> or B<%m[>I<range>B<]>). The caller must B<free>(3) "
1352 "the returned string, as in the following example:"
1353 msgstr ""
1354
1355 #. type: TH
1356 #: fedora-44 fedora-rawhide
1357 #, no-wrap
1358 msgid "2024-11-17"
1359 msgstr ""
1360
1361 #. type: TH
1362 #: fedora-44 fedora-rawhide
1363 #, no-wrap
1364 msgid "Linux man-pages 6.13"
1365 msgstr ""
1366
1367 #. type: Plain text
1368 #: fedora-44 fedora-rawhide
1369 msgid ""
1370 "Use of the numeric conversion specifiers produces undefined behavior for "
1371 "invalid input. See E<.UR https://port70.net/\\:%7Ensz/\\:c/"
1372 "\\:c11/\\:n1570.html\\:#7.21.6.2p10> C11 7.21.6.2/10 E<.UE .> This is a bug "
1373 "in the ISO C standard, and not an inherent design issue with the API. "
1374 "However, current implementations are not safe from that bug, so it is not "
1375 "recommended to use them. Instead, programs should use functions such as "
1376 "B<strtol>(3) to parse numeric input. Alternatively, mitigate it by "
1377 "specifying a maximum field width."
1378 msgstr ""
1379
1380 #. type: TH
1381 #: mageia-cauldron
1382 #, no-wrap
1383 msgid "2025-12-25"
1384 msgstr ""
1385
1386 #. type: TH
1387 #: mageia-cauldron
1388 #, no-wrap
1389 msgid "Linux man-pages 6.17"
1390 msgstr ""
1391
1392 #. type: TH
1393 #: opensuse-leap-16-1 opensuse-tumbleweed
1394 #, no-wrap
1395 msgid "Linux man-pages (unreleased)"
1396 msgstr ""