| 1 |
# German translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Helge Kreutzmann <[email protected]>, 2026. |
| 5 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: manpages-l10n 4.30.2\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:43+0200\n" |
| 9 |
"PO-Revision-Date: 2026-05-24 05:32+0200\n" |
| 10 |
"Last-Translator: Helge Kreutzmann <[email protected]>\n" |
| 11 |
"Language-Team: German <[email protected]>\n" |
| 12 |
"Language: de\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=2; plural=(n != 1);\n" |
| 17 |
|
| 18 |
#. type: TH |
| 19 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 20 |
#: opensuse-tumbleweed |
| 21 |
#, no-wrap |
| 22 |
msgid "snprintf" |
| 23 |
msgstr "snprintf" |
| 24 |
|
| 25 |
#. type: TH |
| 26 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 27 |
#: opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "2025-12-07" |
| 30 |
msgstr "7. Dezember 2025" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable |
| 34 |
#, no-wrap |
| 35 |
msgid "Linux man-pages 6.18" |
| 36 |
msgstr "Linux man-pages 6.18" |
| 37 |
|
| 38 |
#. type: SH |
| 39 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 40 |
#: opensuse-tumbleweed |
| 41 |
#, no-wrap |
| 42 |
msgid "NAME" |
| 43 |
msgstr "BEZEICHNUNG" |
| 44 |
|
| 45 |
#. type: Plain text |
| 46 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 47 |
#: opensuse-tumbleweed |
| 48 |
msgid "snprintf, vsnprintf - string print formatted" |
| 49 |
msgstr "snprintf, vsnprintf - Formatierte Zeichenkettenausgabe" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 53 |
#: opensuse-tumbleweed |
| 54 |
#, no-wrap |
| 55 |
msgid "LIBRARY" |
| 56 |
msgstr "BIBLIOTHEK" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 60 |
#: opensuse-tumbleweed |
| 61 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 62 |
msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 66 |
#: opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "SYNOPSIS" |
| 69 |
msgstr "ÜBERSICHT" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 73 |
#: opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "B<#include E<lt>stdio.hE<gt>>\n" |
| 76 |
msgstr "B<#include E<lt>stdio.hE<gt>>\n" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 80 |
#: opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "" |
| 83 |
"B<int snprintf(>size_t size;\n" |
| 84 |
"B< char >I<str>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 85 |
"B< const char *restrict >I<format>B<, ...);>\n" |
| 86 |
"B<int vsnprintf(>size_t size;\n" |
| 87 |
"B< char >I<str>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 88 |
"B< const char *restrict >I<format>B<, va_list >I<ap>B<);>\n" |
| 89 |
msgstr "" |
| 90 |
"B<int snprintf(>size_t Größe;\n" |
| 91 |
"B< char >I<zk>B<[restrict >I<Größe>B<], size_t >I<Größe>B<,>\n" |
| 92 |
"B< const char *restrict >I<Format>B<, …);>\n" |
| 93 |
"B<int vsnprintf(>size_t Größe;\n" |
| 94 |
"B< char >I<zk>B<[restrict >I<Größe>B<], size_t >I<Größe>B<,>\n" |
| 95 |
"B< const char *restrict >I<Format>B<, va_list >I<ap>B<);>\n" |
| 96 |
|
| 97 |
#. type: Plain text |
| 98 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 99 |
#: opensuse-tumbleweed |
| 100 |
msgid "" |
| 101 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 102 |
msgstr "" |
| 103 |
"Mit Glibc erforderliche Feature-Test-Makros (siehe " |
| 104 |
"B<feature_test_macros>(7)):" |
| 105 |
|
| 106 |
#. type: Plain text |
| 107 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 108 |
#: opensuse-tumbleweed |
| 109 |
msgid "B<snprintf>(), B<vsnprintf>():" |
| 110 |
msgstr "B<snprintf>(), B<vsnprintf>():" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 114 |
#: opensuse-tumbleweed |
| 115 |
#, no-wrap |
| 116 |
msgid "" |
| 117 |
" _XOPEN_SOURCE E<gt>= 500 || _ISOC99_SOURCE\n" |
| 118 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n" |
| 119 |
msgstr "" |
| 120 |
" _XOPEN_SOURCE E<gt>= 500 || _ISOC99_SOURCE\n" |
| 121 |
" || /* Glibc E<lt>= 2.19: */ _BSD_SOURCE\n" |
| 122 |
|
| 123 |
#. type: SH |
| 124 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 125 |
#: opensuse-tumbleweed |
| 126 |
#, no-wrap |
| 127 |
msgid "DESCRIPTION" |
| 128 |
msgstr "BESCHREIBUNG" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 132 |
#: opensuse-tumbleweed |
| 133 |
msgid "" |
| 134 |
"These functions are similar to B<printf>(3), except that they write to the " |
| 135 |
"character string I<str> instead of a stream." |
| 136 |
msgstr "" |
| 137 |
"Diese Funktionen sind B<printf>(3) ähnlich, außer dass sie in die " |
| 138 |
"Zeichenkette I<zk> anstatt in einen Datenstrom schreiben." |
| 139 |
|
| 140 |
#. type: Plain text |
| 141 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 142 |
#: opensuse-tumbleweed |
| 143 |
msgid "" |
| 144 |
"The functions B<snprintf>() and B<vsnprintf>() write at most I<size> bytes " |
| 145 |
"(including the terminating null byte (\\[aq]\\[rs]0\\[aq])) to I<str>." |
| 146 |
msgstr "" |
| 147 |
"Die Funktionen B<snprintf>() und B<vsnprintf>() schreiben höchstens I<Größe> " |
| 148 |
"byte (einschließlich des abschließenden Nullbytes (»\\[rs]0«)) nach I<zk>." |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 152 |
#: opensuse-tumbleweed |
| 153 |
msgid "" |
| 154 |
"B<vsnprintf>() is equivalent to B<snprintf>(), except that it is called " |
| 155 |
"with a I<va_list> instead of a variable number of arguments. This function " |
| 156 |
"does not call the I<va_end> macro. Because it invokes the I<va_arg> macro, " |
| 157 |
"the value of I<ap> is undefined after the call. See B<stdarg>(3)." |
| 158 |
msgstr "" |
| 159 |
"B<vsnprintf>() ist zu B<snprintf>() äquivalent, außer dass es mit einer " |
| 160 |
"I<va_list> statt einer variablen Zahl von Argumenten aufgerufen wird. Diese " |
| 161 |
"Funktion ruft das Makro I<va_end> nicht auf. Da es das Makro I<va_arg> " |
| 162 |
"aufruft, ist der Wert von I<ap> nach dem Aufruf nicht definiert. Siehe " |
| 163 |
"B<stdarg>(3)." |
| 164 |
|
| 165 |
#. type: Plain text |
| 166 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 167 |
#: opensuse-tumbleweed |
| 168 |
msgid "" |
| 169 |
"C99 and POSIX.1-2001 specify that the results are undefined if a call to " |
| 170 |
"B<snprintf>() or B<vsnprintf>() would cause copying to take place between " |
| 171 |
"objects that overlap (e.g., if the target string array and one of the " |
| 172 |
"supplied input arguments refer to the same buffer). See CAVEATS." |
| 173 |
msgstr "" |
| 174 |
"C99 und POSIX.1-2001 legen fest, dass das Ergebnis nicht definiert ist, wenn " |
| 175 |
"ein Aufruf von B<snprintf>() oder B<vsnprintf>() zu einem Kopieren zwischen " |
| 176 |
"überlappenden Objekten führen würde (z.B. wenn das Zielzeichenkettenfeld und " |
| 177 |
"eines der übergebenen Eingabe-Argumente sich auf den gleichen Puffer " |
| 178 |
"beziehen). Siehe WARNUNGEN." |
| 179 |
|
| 180 |
#. type: SS |
| 181 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 182 |
#: opensuse-tumbleweed |
| 183 |
#, no-wrap |
| 184 |
msgid "Format of the format string" |
| 185 |
msgstr "Format der Formatzeichenkette" |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 189 |
#: opensuse-tumbleweed |
| 190 |
msgid "See B<printf>(3)." |
| 191 |
msgstr "Siehe B<printf>(3)." |
| 192 |
|
| 193 |
#. type: SH |
| 194 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 195 |
#: opensuse-tumbleweed |
| 196 |
#, no-wrap |
| 197 |
msgid "RETURN VALUE" |
| 198 |
msgstr "RÜCKGABEWERT" |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 202 |
#: opensuse-tumbleweed |
| 203 |
msgid "" |
| 204 |
"Upon successful return, these functions return the number of bytes printed " |
| 205 |
"(excluding the null byte used to end output to strings)." |
| 206 |
msgstr "" |
| 207 |
"Nach erfolgreicher Ausführung geben diese Funktionen die Anzahl der " |
| 208 |
"ausgegebenen Bytes zurück (ohne das für den Abschluß der " |
| 209 |
"Zeichenkettenausgabe verwendete Nullbyte)." |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 213 |
#: opensuse-tumbleweed |
| 214 |
msgid "" |
| 215 |
"The functions B<snprintf>() and B<vsnprintf>() do not write more than " |
| 216 |
"I<size> bytes (including the terminating null byte (\\[aq]\\[rs]0\\[aq])). " |
| 217 |
"If the output was truncated due to this limit, then the return value is the " |
| 218 |
"number of characters (excluding the terminating null byte) which would have " |
| 219 |
"been written to the final string if enough space had been available. Thus, " |
| 220 |
"a return value of I<size> or more means that the output was truncated. (See " |
| 221 |
"also below under CAVEATS.)" |
| 222 |
msgstr "" |
| 223 |
"Die Funktionen B<snprintf>() und B<vsnprintf>() schreiben nicht mehr als " |
| 224 |
"I<Größe> byte (einschließlich des abschließenden Nullbytes »\\[rs]0«)). " |
| 225 |
"Falls die Ausgabe wegen dieser Begrenzung gekürzt wurde, ist der " |
| 226 |
"Rückgabewert die Anzahl der Zeichen (ohne abschließendes Nullbyte), die bei " |
| 227 |
"ausreichendem Speicherplatz in die Ausgabe geschrieben worden wären. Damit " |
| 228 |
"bedeutet ein Rückgabewert von I<Größe> oder mehr, dass die Ausgabe gekürzt " |
| 229 |
"wurde. (Siehe auch im Folgenden unter WARNUNGEN.)" |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 233 |
#: opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"On error, a negative value is returned, and I<errno> is set to indicate the " |
| 236 |
"error." |
| 237 |
msgstr "" |
| 238 |
"Bei einem Fehler wird ein negativer Wert zurückgegeben und I<errno> wird " |
| 239 |
"gesetzt, um den Fehler anzuzeigen." |
| 240 |
|
| 241 |
#. type: SH |
| 242 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 243 |
#: opensuse-tumbleweed |
| 244 |
#, no-wrap |
| 245 |
msgid "ERRORS" |
| 246 |
msgstr "FEHLER" |
| 247 |
|
| 248 |
#. type: SH |
| 249 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 250 |
#: opensuse-tumbleweed |
| 251 |
#, no-wrap |
| 252 |
msgid "ATTRIBUTES" |
| 253 |
msgstr "ATTRIBUTE" |
| 254 |
|
| 255 |
#. type: Plain text |
| 256 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 257 |
#: opensuse-tumbleweed |
| 258 |
msgid "" |
| 259 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 260 |
msgstr "" |
| 261 |
"Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt " |
| 262 |
"verwandten Ausdrücke." |
| 263 |
|
| 264 |
#. type: tbl table |
| 265 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 266 |
#: opensuse-tumbleweed |
| 267 |
#, no-wrap |
| 268 |
msgid "Interface" |
| 269 |
msgstr "Schnittstelle" |
| 270 |
|
| 271 |
#. type: tbl table |
| 272 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 273 |
#: opensuse-tumbleweed |
| 274 |
#, no-wrap |
| 275 |
msgid "Attribute" |
| 276 |
msgstr "Attribut" |
| 277 |
|
| 278 |
#. type: tbl table |
| 279 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 280 |
#: opensuse-tumbleweed |
| 281 |
#, no-wrap |
| 282 |
msgid "Value" |
| 283 |
msgstr "Wert" |
| 284 |
|
| 285 |
#. type: tbl table |
| 286 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 287 |
#: opensuse-tumbleweed |
| 288 |
#, no-wrap |
| 289 |
msgid ".na\n" |
| 290 |
msgstr ".na\n" |
| 291 |
|
| 292 |
#. type: tbl table |
| 293 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 294 |
#: opensuse-tumbleweed |
| 295 |
#, no-wrap |
| 296 |
msgid ".nh\n" |
| 297 |
msgstr ".nh\n" |
| 298 |
|
| 299 |
#. type: tbl table |
| 300 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 301 |
#: opensuse-tumbleweed |
| 302 |
#, no-wrap |
| 303 |
msgid "" |
| 304 |
"B<snprintf>(),\n" |
| 305 |
"B<vsnprintf>()" |
| 306 |
msgstr "" |
| 307 |
"B<snprintf>(),\n" |
| 308 |
"B<vsnprintf>()" |
| 309 |
|
| 310 |
#. type: tbl table |
| 311 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 312 |
#: opensuse-tumbleweed |
| 313 |
#, no-wrap |
| 314 |
msgid "Thread safety" |
| 315 |
msgstr "Multithread-Fähigkeit" |
| 316 |
|
| 317 |
#. type: tbl table |
| 318 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 319 |
#: opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "MT-Safe locale" |
| 322 |
msgstr "MT-Sicher locale" |
| 323 |
|
| 324 |
#. type: SH |
| 325 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 326 |
#: opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "STANDARDS" |
| 329 |
msgstr "STANDARDS" |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 333 |
#: opensuse-tumbleweed |
| 334 |
msgid "C11, POSIX.1-2008." |
| 335 |
msgstr "C11, POSIX.1-2008." |
| 336 |
|
| 337 |
#. type: SH |
| 338 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 339 |
#: opensuse-tumbleweed |
| 340 |
#, no-wrap |
| 341 |
msgid "HISTORY" |
| 342 |
msgstr "GESCHICHTE" |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 346 |
#: opensuse-tumbleweed |
| 347 |
msgid "SUSv2, C99, POSIX.1-2001." |
| 348 |
msgstr "SUSv2, C99, POSIX.1-2001." |
| 349 |
|
| 350 |
#. type: Plain text |
| 351 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 352 |
#: opensuse-tumbleweed |
| 353 |
msgid "" |
| 354 |
"Concerning the return value, SUSv2 and C99 contradict each other: when " |
| 355 |
"B<snprintf>() is called with I<size>=0 then SUSv2 stipulates an unspecified " |
| 356 |
"return value less than 1, while C99 allows I<str> to be NULL in this case, " |
| 357 |
"and gives the return value (as always) as the number of characters that " |
| 358 |
"would have been written in case the output string has been large enough. " |
| 359 |
"POSIX.1-2001 and later align their specification of B<snprintf>() with C99." |
| 360 |
msgstr "" |
| 361 |
"Bezüglich des Rückgabewertes widersprechen sich SUSv2 und C99: Wird " |
| 362 |
"B<snprintf>() mit I<size>=B<0> aufgerufen, dann fordert SUSv2 einen nicht " |
| 363 |
"festgelegten Wert kleiner als 1, während C99 erlaubt, dass I<zk> in diesem " |
| 364 |
"Fall NULL ist und beschreibt den Rückgabewert (wie üblich) als die Anzahl " |
| 365 |
"der Zeichen, die geschrieben worden wären, falls die Ausgabezeichenkette " |
| 366 |
"groß genug gewesen wäre. POSIX.1-2001 und neuere richten ihre Spezifikation " |
| 367 |
"von B<snprintf>() an C99 aus." |
| 368 |
|
| 369 |
#. type: SH |
| 370 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 371 |
#: opensuse-tumbleweed |
| 372 |
#, no-wrap |
| 373 |
msgid "CAVEATS" |
| 374 |
msgstr "WARNUNGEN" |
| 375 |
|
| 376 |
#. type: Plain text |
| 377 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 378 |
#: opensuse-tumbleweed |
| 379 |
msgid "Some programs imprudently rely on code such as the following" |
| 380 |
msgstr "" |
| 381 |
"Einige Programme verlassen sich leichtsinnig auf Code wie den folgenden" |
| 382 |
|
| 383 |
#. type: Plain text |
| 384 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 385 |
#: opensuse-tumbleweed |
| 386 |
#, no-wrap |
| 387 |
msgid "snprintf(buf, countof(buf), \"%s some further text\", buf);\n" |
| 388 |
msgstr "snprintf(puf, countof(puf), \"%s weiterer Text\", puf);\n" |
| 389 |
|
| 390 |
#. http://sourceware.org/bugzilla/show_bug.cgi?id=7075 |
| 391 |
#. type: Plain text |
| 392 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 393 |
#: opensuse-tumbleweed |
| 394 |
msgid "" |
| 395 |
"to append text to I<buf>. However, the standards explicitly note that the " |
| 396 |
"results are undefined if source and destination buffers overlap when calling " |
| 397 |
"B<snprintf>() and B<vsnprintf>(). Depending on the version of B<gcc>(1) " |
| 398 |
"used, and the compiler options employed, calls such as the above will B<not> " |
| 399 |
"produce the expected results." |
| 400 |
msgstr "" |
| 401 |
"um Text an I<puf> anzuhängen. Allerdings vermerken die Standards explizit, " |
| 402 |
"dass die Ergebnisse nicht definiert sind, falls sich die Quell- und " |
| 403 |
"Zielpuffer beim Aufruf von B<snprintf>() und B<vsnprintf>() überlappen. " |
| 404 |
"Abhängig von der verwandten Version von B<gcc>(1) und den eingesetzten " |
| 405 |
"Compiler-Optionen werden Aufrufe wie der vorstehende B<nicht> die erwarteten " |
| 406 |
"Ergebnisse liefern." |
| 407 |
|
| 408 |
#. .SH HISTORY |
| 409 |
#. UNIX V7 defines the three routines |
| 410 |
#. .BR sprintf (). |
| 411 |
#. 2.11BSD has |
| 412 |
#. .BR vsprintf (). |
| 413 |
#. 4.4BSD introduces the functions |
| 414 |
#. .BR snprintf () |
| 415 |
#. and |
| 416 |
#. .BR vsnprintf (). |
| 417 |
#. FreeBSD also has functions |
| 418 |
#. .BR asprintf () |
| 419 |
#. and |
| 420 |
#. .BR vasprintf (), |
| 421 |
#. that allocate a buffer large enough for |
| 422 |
#. .BR sprintf (). |
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 425 |
#: opensuse-tumbleweed |
| 426 |
msgid "" |
| 427 |
"The glibc implementation of the functions B<snprintf>() and B<vsnprintf>() " |
| 428 |
"conforms to the C99 standard, that is, behaves as described above, since " |
| 429 |
"glibc 2.1. Until glibc 2.0.6, they would return -1 when the output was " |
| 430 |
"truncated." |
| 431 |
msgstr "" |
| 432 |
"Seit der Glibc-Version 2.1 ist die Implementierung der Funktionen " |
| 433 |
"B<snprintf>() und B<vsnprintf>() konform zu C99, verhält sich also wie oben " |
| 434 |
"beschrieben. Bis Glibc 2.0.6 gaben sie im Fall gekürzter Ausgaben -1 zurück." |
| 435 |
|
| 436 |
#. type: SH |
| 437 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 438 |
#: opensuse-tumbleweed |
| 439 |
#, no-wrap |
| 440 |
msgid "BUGS" |
| 441 |
msgstr "FEHLER" |
| 442 |
|
| 443 |
#. type: SH |
| 444 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 445 |
#: opensuse-tumbleweed |
| 446 |
#, no-wrap |
| 447 |
msgid "EXAMPLES" |
| 448 |
msgstr "BEISPIELE" |
| 449 |
|
| 450 |
#. type: Plain text |
| 451 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 452 |
#: opensuse-tumbleweed |
| 453 |
msgid "" |
| 454 |
"To allocate a sufficiently large string and print into it (code correct for " |
| 455 |
"both glibc 2.0 and glibc 2.1):" |
| 456 |
msgstr "" |
| 457 |
"Um eine genügend große Zeichenkette bereitzustellen und in sie zu schreiben " |
| 458 |
"(der Code ist korrekt sowohl für Glibc 2.0 als auch Glibc 2.1):" |
| 459 |
|
| 460 |
#. type: Plain text |
| 461 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 462 |
#: opensuse-tumbleweed |
| 463 |
#, no-wrap |
| 464 |
msgid "" |
| 465 |
"#include E<lt>stdio.hE<gt>\n" |
| 466 |
"#include E<lt>stdlib.hE<gt>\n" |
| 467 |
"#include E<lt>stdarg.hE<gt>\n" |
| 468 |
"\\&\n" |
| 469 |
"char *\n" |
| 470 |
"make_message(const char *fmt, ...)\n" |
| 471 |
"{\n" |
| 472 |
" int n = 0;\n" |
| 473 |
" size_t size = 0;\n" |
| 474 |
" char *p = NULL;\n" |
| 475 |
" va_list ap;\n" |
| 476 |
"\\&\n" |
| 477 |
" /* Determine required size. */\n" |
| 478 |
"\\&\n" |
| 479 |
" va_start(ap, fmt);\n" |
| 480 |
" n = vsnprintf(p, size, fmt, ap);\n" |
| 481 |
" va_end(ap);\n" |
| 482 |
"\\&\n" |
| 483 |
" if (n E<lt> 0)\n" |
| 484 |
" return NULL;\n" |
| 485 |
"\\&\n" |
| 486 |
" size = (size_t) n + 1; /* One extra byte for \\[aq]\\[rs]0\\[aq] */\n" |
| 487 |
" p = malloc(size);\n" |
| 488 |
" if (p == NULL)\n" |
| 489 |
" return NULL;\n" |
| 490 |
"\\&\n" |
| 491 |
" va_start(ap, fmt);\n" |
| 492 |
" n = vsnprintf(p, size, fmt, ap);\n" |
| 493 |
" va_end(ap);\n" |
| 494 |
"\\&\n" |
| 495 |
" if (n E<lt> 0) {\n" |
| 496 |
" free(p);\n" |
| 497 |
" return NULL;\n" |
| 498 |
" }\n" |
| 499 |
"\\&\n" |
| 500 |
" return p;\n" |
| 501 |
"}\n" |
| 502 |
msgstr "" |
| 503 |
"#include E<lt>stdio.hE<gt>\n" |
| 504 |
"#include E<lt>stdlib.hE<gt>\n" |
| 505 |
"#include E<lt>stdarg.hE<gt>\n" |
| 506 |
"\\&\n" |
| 507 |
"char *\n" |
| 508 |
"make_message(const char *fmt, …)\n" |
| 509 |
"{\n" |
| 510 |
" int n = 0;\n" |
| 511 |
" size_t size = 0;\n" |
| 512 |
" char *p = NULL;\n" |
| 513 |
" va_list ap;\n" |
| 514 |
"\\&\n" |
| 515 |
" /* Benötigte Größe bestimomen. */\n" |
| 516 |
"\\&\n" |
| 517 |
" va_start(ap, fmt);\n" |
| 518 |
" n = vsnprintf(p, size, fmt, ap);\n" |
| 519 |
" va_end(ap);\n" |
| 520 |
"\\&\n" |
| 521 |
" if (n E<lt> 0)\n" |
| 522 |
" return NULL;\n" |
| 523 |
"\\&\n" |
| 524 |
" size = (size_t) n + 1; /* Ein zusätzliches Byte für »\\[rs]0« */\n" |
| 525 |
" p = malloc(size);\n" |
| 526 |
" if (p == NULL)\n" |
| 527 |
" return NULL;\n" |
| 528 |
"\\&\n" |
| 529 |
" va_start(ap, fmt);\n" |
| 530 |
" n = vsnprintf(p, size, fmt, ap);\n" |
| 531 |
" va_end(ap);\n" |
| 532 |
"\\&\n" |
| 533 |
" if (n E<lt> 0) {\n" |
| 534 |
" free(p);\n" |
| 535 |
" return NULL;\n" |
| 536 |
" }\n" |
| 537 |
"\\&\n" |
| 538 |
" return p;\n" |
| 539 |
"}\n" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 543 |
#: opensuse-tumbleweed |
| 544 |
msgid "" |
| 545 |
"If truncation occurs in glibc versions prior to glibc 2.0.6, this is treated " |
| 546 |
"as an error instead of being handled gracefully." |
| 547 |
msgstr "" |
| 548 |
"Bei Kürzungen in Glibc-Versionen vor 2.0.6 wird dies als ein Fehler " |
| 549 |
"aufgefasst und nicht wohlwollend behandelt." |
| 550 |
|
| 551 |
#. type: SH |
| 552 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 553 |
#: opensuse-tumbleweed |
| 554 |
#, no-wrap |
| 555 |
msgid "SEE ALSO" |
| 556 |
msgstr "SIEHE AUCH" |
| 557 |
|
| 558 |
#. type: Plain text |
| 559 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 560 |
#: opensuse-tumbleweed |
| 561 |
msgid "" |
| 562 |
"B<printf>(1), B<asprintf>(3), B<printf>(3), B<puts>(3), B<scanf>(3), " |
| 563 |
"B<setlocale>(3), B<strfromd>(3), B<wcrtomb>(3), B<wprintf>(3), B<locale>(5)" |
| 564 |
msgstr "" |
| 565 |
"B<printf>(1), B<asprintf>(3), B<printf>(3), B<puts>(3), B<scanf>(3), " |
| 566 |
"B<setlocale>(3), B<strfromd>(3), B<wcrtomb>(3), B<wprintf>(3), B<locale>(5)" |
| 567 |
|
| 568 |
#. type: TH |
| 569 |
#: mageia-cauldron |
| 570 |
#, no-wrap |
| 571 |
msgid "Linux man-pages 6.17" |
| 572 |
msgstr "Linux man-pages 6.17" |
| 573 |
|
| 574 |
#. type: TH |
| 575 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 576 |
#, no-wrap |
| 577 |
msgid "Linux man-pages (unreleased)" |
| 578 |
msgstr "Linux man-pages (unveröffentlicht)" |