Jump to content

Printf

From Wikipedia, the free encyclopedia

Template:Short description Template:More citations needed Template:Use dmy dates Template:Use American English Template:Lowercase title

Diagram illustrating syntax of printf function. The first argument to the function is a template string, which may contain format specifiers, which are introduced with the percent sign (%) character. Format specifiers instruct printf how to interpret and output values given in the corresponding arguments which follow the format string. printf replaces the format specifiers with the accordingly-interpreted contents of the remaining arguments, and outputs the result.
An example call to the printf function

Template:Mono is a C standard library function and is also a Linux terminal (shell) command that formats text and writes it to standard output. The function accepts a format C-string argument and a variable number of value arguments that the function serializes per the format string. Mismatch between the format specifiers and count and type of values results in undefined behavior, and the program might crash or vulnerabilities may arise.

The format string is encoded as a template language consisting of verbatim text and format specifiers that each specify how to serialize a value. As the format string is processed left-to-right, a subsequent value is used for each format specifier found. A format specifier starts with a <syntaxhighlight lang="text" class="" style="" inline="1">%</syntaxhighlight> character and has one or more following characters that specify how to serialize a value.

The standard library provides other, similar functions that form a family of printf-like functions. The functions share the same formatting capabilities but provide different behavior such as output to a different destination or safety measures that limit exposure to vulnerabilities. Functions of the printf-family have been implemented in other computer programming contexts (i.e., programming languages) with the same or similar syntax and semantics.

The [[scanf|Template:Mono]] C standard library function complements printf by providing formatted input (a.k.a. lexing, a.k.a. parsing) via a similar format string syntax.

The name, Template:Mono, is short for print formatted where print refers to output to a printer although the function is not limited to printer output. Today, print refers to output to any text-based environment such as a terminal or a file.

Format specifier

Formatting of a value is specified as markup in the format string. For example, the following outputs Your age is and then the value of the variable Template:Var in decimal format.

<syntaxhighlight lang="c"> printf("Your age is %d", age); </syntaxhighlight>

Syntax

The syntax for a format specifier is:

%[parameter][flags][width][.precision][length]type

Parameter field

The parameter field is optional. If included, then matching specifiers to values is Template:Em sequential. The numeric value Template:Samp selects the n-th value parameter. This is a POSIX extension, not C99.[1]

Template:Table alignment

Text Description
Template:Tt n is the index of the value parameter to serialize using this format specifier

This field allows for using the same value multiple times in a format string instead of having to pass the value multiple times. If a specifier includes this field, then subsequent specifiers must also.

For example, <syntaxhighlight lang="c" inline> printf("%2$d %2$#x; %1$d %1$#x",16,17); </syntaxhighlight> outputs: Template:Samp

This field is very useful for localizing messages to different natural languages that use different word orders.[1]

In the Windows API, support for this feature is via a different function, <syntaxhighlight lang="text" class="" style="" inline="1">printf_p</syntaxhighlight>.[2]

Flags field

The flags field can be zero or more of (in any order): Template:Table alignment

Text Description
Template:Tt Left-align the output of this placeholder; default is to right-align the output
Template:Tt Prepends a plus sign for a positive value; by default a positive value does not have a prefix

(space)
Prepends a space character for a positive value; ignored if the Template:Tt flag exists; by default a positive value does not have a prefix
Template:Tt When the 'width' option is specified, prepends zeros instead of spaces for numeric types; for example, <syntaxhighlight lang="c" class="" style="" inline="1">printf("%4X",3)</syntaxhighlight> produces " 3", while <syntaxhighlight lang="c" class="" style="" inline="1">printf("%04X",3);</syntaxhighlight> produces Template:Samp
Template:Tt The integer or exponent of a decimal has the thousands grouping separator applied
Template:Tt Alternate form:
For Template:Tt and Template:Tt types, trailing zeros are not removed
For Template:Tt, Template:Tt, Template:Tt, Template:Tt, Template:Tt, Template:Tt types, the output always contains a decimal point
For Template:Tt, Template:Tt, Template:Tt types, the text Template:Tt, Template:Tt, Template:Tt, respectively, is prepended to non-zero numbers

Width field

The width field specifies the Template:Em number of characters to output. If the value can be represented in fewer characters, then the value is left-padded with spaces so that output is the number of characters specified. If the value requires more characters, then the output is longer than the specified width. A value is never truncated.

For example, <syntaxhighlight lang="c" class="" style="" inline="1">printf("%3d", 12);</syntaxhighlight> specifies a width of 3 and outputs Template:Samp with a space on the left to output 3 characters. The call <syntaxhighlight lang="c" class="" style="" inline="1">printf("%3d", 1234);</syntaxhighlight> outputs Template:Samp which is 4 characters long since that is the minimum width for that value even though the width specified is 3.

If the width field is omitted, the output is the minimum number of characters for the value.

If the field is specified as <syntaxhighlight lang="text" class="" style="" inline="1">*</syntaxhighlight>, then the width value is read from the list of values in the call.[3] For example, <syntaxhighlight lang="c" class="" style="" inline="1">printf("%*d", 3, 10);</syntaxhighlight> outputs 10 (<space>10) where the second parameter, <syntaxhighlight lang="c" class="" style="" inline="1">3</syntaxhighlight>, is the width (matches with <syntaxhighlight lang="text" class="" style="" inline="1">*</syntaxhighlight>) and <syntaxhighlight lang="c" class="" style="" inline="1">10</syntaxhighlight> is the value to serialize (matches with <syntaxhighlight lang="text" class="" style="" inline="1">d</syntaxhighlight>).

Though not part of the width field, a leading zero is interpreted as the zero-padding flag mentioned above, and a negative value is treated as the positive value in conjunction with the left-alignment <syntaxhighlight lang="text" class="" style="" inline="1">-</syntaxhighlight> flag also mentioned above.

The width field can be used to format values as a table (tabulated output). But, columns do not align if any value is larger than fits in the width specified. For example, notice that the last line value (Template:Samp) does not fit in the first column of width 3 and therefore the column is not aligned.

<syntaxhighlight lang="output">

 1   1
12  12

123 123 1234 123 </syntaxhighlight>

Precision field

The precision field usually specifies a Template:Em limit of the output, as set by the formatting type. For floating-point numeric types, it specifies the number of digits to the right of the decimal point to which the output should be rounded; for <syntaxhighlight lang="text" class="" style="" inline="1">%g</syntaxhighlight> and <syntaxhighlight lang="text" class="" style="" inline="1">%G</syntaxhighlight> it specifies the total number of significant figures (before and after the decimal, not including leading or trailing zeroes) to round to. For the string type, it limits the number of characters that should be output, after which the string is truncated.

The precision field may be omitted, or a numeric integer value, or a dynamic value when passed as another argument when indicated by an asterisk (<syntaxhighlight lang="text" class="" style="" inline="1">*</syntaxhighlight>). For example, <syntaxhighlight lang="c" class="" style="" inline="1">printf("%.*s", 3, "abcdef");</syntaxhighlight> outputs Template:Samp.

Length field

The length field can be omitted or be any of: Template:Table alignment

Text Description
Template:Tt For integer types, causes Template:Tt to expect an Template:Tt-sized integer argument which was promoted from a Template:Tt.
Template:Tt For integer types, causes Template:Tt to expect an Template:Tt-sized integer argument which was promoted from a Template:Tt.
Template:Tt For integer types, causes Template:Tt to expect a Template:Tt-sized integer argument.

For floating-point types, this is ignored. Template:Tt arguments are always promoted to Template:Tt when used in a varargs call.[4]

Template:Tt For integer types, causes Template:Tt to expect a Template:Tt-sized integer argument.
Template:Tt For floating-point types, causes Template:Tt to expect a Template:Tt argument.
Template:Tt For integer types, causes Template:Tt to expect a Template:Tt-sized integer argument.
Template:Tt For integer types, causes Template:Tt to expect a Template:Tt-sized integer argument.
Template:Tt For integer types, causes Template:Tt to expect a Template:Tt-sized integer argument.

Platform-specific length options came to exist prior to widespread use of the ISO C99 extensions, including: Template:Table alignment

Text Description Commonly found platforms
Template:Tt For signed integer types, causes Template:Tt to expect Template:Tt-sized integer argument; for unsigned integer types, causes Template:Tt to expect Template:Tt-sized integer argument Win32/Win64
Template:Tt For integer types, causes Template:Tt to expect a 32-bit (double word) integer argument Win32/Win64
Template:Tt For integer types, causes Template:Tt to expect a 64-bit (quad word) integer argument Win32/Win64
Template:Tt For integer types, causes Template:Tt to expect a 64-bit (quad word) integer argument BSD

ISO C99 includes the inttypes.h header file that includes a number of macros for cross-platform <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight> coding. For example: <syntaxhighlight lang="c" class="" style="" inline="1">printf("%" PRId64, t);</syntaxhighlight> specifies decimal format for a 64-bit signed integer. Since the macros evaluate to a string literal, and the compiler concatenates adjacent string literals, the expression <syntaxhighlight lang="c" class="" style="" inline="1">"%" PRId64</syntaxhighlight> compiles to a single string.

Macros include:

Macro Description
Template:Tt Typically equivalent to Template:Tt (Win32/Win64) or Template:Tt
Template:Tt Typically equivalent to Template:Tt (Win32/Win64), Template:Tt (32-bit platforms) or Template:Tt (64-bit platforms)
Template:Tt Typically equivalent to Template:Tt (Win32/Win64) or Template:Tt
Template:Tt Typically equivalent to Template:Tt (Win32/Win64), Template:Tt (32-bit platforms) or Template:Tt (64-bit platforms)
Template:Tt Typically equivalent to Template:Tt (Win32/Win64) or Template:Tt
Template:Tt Typically equivalent to Template:Tt (Win32/Win64), Template:Tt (32-bit platforms) or Template:Tt (64-bit platforms)
Template:Tt Typically equivalent to Template:Tt (Win32/Win64) or Template:Tt
Template:Tt Typically equivalent to Template:Tt (Win32/Win64), Template:Tt (32-bit platforms) or Template:Tt (64-bit platforms)

Type field

The type field can be any of: Template:Table alignment

Text Description
Template:Tt Output a literal Template:Tt character; does not accept flags, width, precision or length fields
Template:Tt, Template:Tt (signed) Template:Tt formatted as decimal; Template:Tt and Template:Tt are synonymous except when used with scanf
Template:Tt Template:Tt formatted as decimal.
Template:Tt, Template:Tt Template:Tt formatted as fixed-point; Template:Tt and Template:Tt only differs in how the strings for an infinite number or NaN are printed (Template:Tt, Template:Tt and Template:Tt for Template:Tt; Template:Tt, Template:Tt and Template:Tt for Template:Tt)
Template:Tt, Template:Tt Template:Tt formatted as in exponential notation Template:Tt; Template:Tt results in Template:Tt rather than Template:Tt to introduce the exponent; the exponent always contains at least two digits; if the value is zero, the exponent is Template:Tt; in Windows, the exponent contains three digits by default, e.g. Template:Tt, but this can be altered by Microsoft-specific <syntaxhighlight lang="text" class="" style="" inline="1">_set_output_format</syntaxhighlight> function
Template:Tt, Template:Tt Template:Tt formatted as either fixed-point or exponential notation, whichever is more appropriate for its magnitude; Template:Tt uses lower-case letters, Template:Tt uses upper-case letters; this type differs slightly from fixed-point notation in that insignificant zeroes to the right of the decimal point are not included, and that the precision field specifies the total number of significant digits rather than the digits after the decimal; the decimal point is not included on whole numbers
Template:Tt, Template:Tt Template:Tt formatted as hexadecimal; Template:Tt uses lower-case letters and Template:Tt uses upper-case
Template:Tt Template:Tt formatted as octal
Template:Tt null-terminated string
Template:Tt Template:Tt
Template:Tt Pointer formatted in an implementation-defined way
Template:Tt, Template:Tt Template:Tt in hexadecimal notation, starting with Template:Tt or Template:Tt. Template:Tt uses lower-case letters, Template:Tt uses upper-case letters[5]
Template:Tt Outputs nothing but writes the number of characters written so far into an integer pointer parameter; in Java this prints a newline[6]

Custom data type formatting

A common way to handle formatting with a custom data type is to format the custom data type value into a string, then use the <syntaxhighlight lang="c" class="" style="" inline="1">%s</syntaxhighlight> specifier to include the serialized value in a larger message.

Some printf-like functions allow extensions to the escape-character-based mini-language, thus allowing the programmer to use a specific formatting function for non-builtin types. One is the (now deprecated) glibc's <syntaxhighlight lang="text" class="" style="" inline="1">register_printf_function()</syntaxhighlight>. However, it is rarely used due to the fact that it conflicts with static format string checking. Another is Vstr custom formatters, which allows adding multi-character format names.

Some applications (like the Apache HTTP Server) include their own printf-like function, and embed extensions into it. However these all tend to have the same problems that <syntaxhighlight lang="text" class="" style="" inline="1">register_printf_function()</syntaxhighlight> has.

The Linux kernel printk function supports a number of ways to display kernel structures using the generic <syntaxhighlight lang="c" class="" style="" inline="1">%p</syntaxhighlight> specification, by Template:Em additional format characters.[7] For example, <syntaxhighlight lang="c" class="" style="" inline="1">%pI4</syntaxhighlight> prints an IPv4 address in dotted-decimal form. This allows static format string checking (of the <syntaxhighlight lang="c" class="" style="" inline="1">%p</syntaxhighlight> portion) at the expense of full compatibility with normal printf.

Vulnerabilities

Format string attack

Extra value arguments are ignored, but if the format string has more format specifiers than value arguments passed, the behavior is undefined. For some C compilers, an extra format specifier results in consuming a value even though there isn't one which allows the format string attack. Generally, for C, arguments are passed on the stack. If too few arguments are passed, then printf can read past the end of the stack frame, thus allowing an attacker to read the stack.

Some compilers, like the GNU Compiler Collection, will statically check the format strings of printf-like functions and warn about problems (when using the flags Template:Kbd or Template:Kbd). GCC will also warn about user-defined printf-style functions if the non-standard "format" <syntaxhighlight lang="text" class="" style="" inline="1">__attribute__</syntaxhighlight> is applied to the function.

Uncontrolled format string exploit

The format string is often a string literal, which allows static analysis of the function call. However, the format string can be the value of a variable, which allows for dynamic formatting but also a security vulnerability known as an uncontrolled format string exploit.

Memory write

Although an output function on the surface, <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight> allows writing to a memory location specified by an argument via <syntaxhighlight lang="c" class="" style="" inline="1">%n</syntaxhighlight>. This functionality can be used for code injection attacks without violating control-flow integrity.[8]

The <syntaxhighlight lang="c" class="" style="" inline="1">%n</syntaxhighlight> format specifier also makes <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight> accidentally Turing-complete even with a well-formed set of arguments.[8] A game of tic-tac-toe written in the format string is a winner of the 27th IOCCC.[9]

Family

Variants of <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight> in the C standard library include:[10][11]

<syntaxhighlight lang="text" class="" style="" inline="1">fprintf</syntaxhighlight>
outputs to a file pointer instead of standard output. This "file" can still be stdout or stderr. There is a POSIX-extension <syntaxhighlight lang="text" class="" style="" inline="1">dprintf</syntaxhighlight> that instead accepts an integer file descriptor.
<syntaxhighlight lang="text" class="" style="" inline="1">sprintf</syntaxhighlight>
writes to a string buffer instead of standard output.
<syntaxhighlight lang="text" class="" style="" inline="1">snprintf</syntaxhighlight>
provides a level of safety over <syntaxhighlight lang="text" class="" style="" inline="1">sprintf</syntaxhighlight> since the caller provides a length n that is the length of the output buffer in bytes (including space for the trailing null character).
<syntaxhighlight lang="text" class="" style="" inline="1">asprintf</syntaxhighlight>
provides for safety by accepting a string handle (char**) argument. The function allocates a buffer of sufficient size to contain the formatted text and outputs the buffer via the handle. This is a POSIX extension.

For each function of the family, including <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight>, there is also a variant that accepts a single <syntaxhighlight lang="text" class="" style="" inline="1">va_list</syntaxhighlight> argument rather than a variable list of arguments. These variants start with "v", for example: <syntaxhighlight lang="text" class="" style="" inline="1">vprintf</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">vfprintf</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">vsprintf</syntaxhighlight>.

For each function of the family, including the <syntaxhighlight lang="text" class="" style="" inline="1">v</syntaxhighlight> versions, there is also a variant that operates on C-style wide characters. These variants replace the name "printf" with "wprintf", for example: <syntaxhighlight lang="text" class="" style="" inline="1">fwprintf</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">vswprintf</syntaxhighlight>.

Generally, printf-like functions return the number of bytes output or a negative number to indicate failure.

The near-inverse function for printf is scanf, which accepts a very similar format string to parse an input.

Other contexts

The following list includes notable programming languages that provide (directly or via a standard library) functioning that is the same or similar to the C printf-like functions. Excluded are languages that use format strings that deviate from the style in this article (such as AMPL and Elixir), languages that inherit their implementation from the Java virtual machine (JVM) or other environment (such as Clojure and Scala), and languages that do not have a standard native printf implementation but have external libraries which emulate printf behavior (such as JavaScript).

Template:Div col

Template:Div col end

History

1950s: Fortran

Early programming languages like Fortran used special statements with different syntax from other calculations to build formatting descriptions.[16] In this example, the format is specified on line Template:Samp, and the <syntaxhighlight lang="fortran" class="" style="" inline="1">PRINT</syntaxhighlight>Template:Efn command refers to it by line number: <syntaxhighlight lang="fortranfixed">

     PRINT 601, IA, IB, AREA
601  FORMAT (4H A= ,I5,5H  B= ,I5,8H  AREA= ,F10.2, 13H SQUARE UNITS)

</syntaxhighlight>

Hereby:

  • <syntaxhighlight lang="fortran" class="" style="" inline="1">4H</syntaxhighlight> indicates a string of 4 characters " A= " (<syntaxhighlight lang="text" class="" style="" inline="1">H</syntaxhighlight> means Hollerith Field);
  • <syntaxhighlight lang="fortran" class="" style="" inline="1">I5</syntaxhighlight> indicates an integer field of width 5;
  • <syntaxhighlight lang="fortran" class="" style="" inline="1">F10.2</syntaxhighlight> indicates a floating-point field of width 10 with 2 digits after the decimal point.

An output with input arguments <syntaxhighlight lang="text" class="" style="" inline="1">100</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">200</syntaxhighlight>, and <syntaxhighlight lang="text" class="" style="" inline="1">1500.25</syntaxhighlight> might look like this: <syntaxhighlight lang="output">

A=   100  B=   200  AREA=    1500.25 SQUARE UNITS

</syntaxhighlight>

1960s: BCPL and ALGOL 68

In 1967, BCPL appeared.[17] Its library included the <syntaxhighlight lang="text" class="" style="" inline="1">writef</syntaxhighlight> routine which acted as a function call (instead of a special syntax).[18] An example application looks like this: <syntaxhighlight lang="C"> WRITEF("%I2-QUEENS PROBLEM HAS %I5 SOLUTIONS*N", NUMQUEENS, COUNT) </syntaxhighlight>

Hereby:

  • <syntaxhighlight lang="text" class="" style="" inline="1">%I2</syntaxhighlight> indicates an integer of width 2 (the order of the format specification's field width and type is reversed compared to C's <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight>);
  • <syntaxhighlight lang="text" class="" style="" inline="1">%I5</syntaxhighlight> indicates an integer of width 5;
  • <syntaxhighlight lang="text" class="" style="" inline="1">*N</syntaxhighlight> is a BCPL language escape sequence representing a newline character (for which C uses the escape sequence <syntaxhighlight lang="text" class="" style="" inline="1">\n</syntaxhighlight>).

ALGOL 68 also had a function api, but used special syntax for the format: <syntaxhighlight lang="cpp"> printf(($"Color "g", number1 "6d,", number2 "4zd,", hex "16r2d,", float "-d.2d,", unsigned value"-3d"."l$,

        "red", 123456, 89, BIN 255, 3.14, 250));

</syntaxhighlight>

Using normal function syntax for the printing simplifies the language, and allows the printing to be implemented in the language itself. In most newer languages of that era I/O is not part of the syntax. However the format was usually not checked to see if it matched the type (or even the number) of values being printed.[19]

1970s: C

In 1973, <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight> was included as a C standard library routine as part of Version 4 Unix.[20] They were included into the first C standard of 1989, ANSI C89 (ANSI X3.159-1989).[11]

1990s: Unix and POSIX

The %n$ notation is not present in the 1985 system V user manual,[21] but is present in the 1996 version 4 of the System V Interface Definition.[22] It is present in version 6 of the POSIX standard as a clearly-marked C extension ("CX").[23]

1990s: Shell command

In 1990, the printf command-line program, modeled after the C standard library function, was included with 4.3BSD-Reno.[24] In 1991, a <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight> command was included with GNU shellutils (now part of GNU Core Utilities).

X/Open Portability Guide added the utility printf in Issue 4 (circa 1994); by then the %n$ notation was not present.[25][26] The %n$ feature was added in Issue 8 of 2024, finally matching the POSIX C extension.[27]

2000s: Java

In 2004, Java 5.0 (1.5) released, which extended the class java.io.PrintStream, adding a method named printf() which functions analogously to printf() in C. Thus to print a formatted string to the standard output stream, one uses System.out.printf(). Java further introduced the method format to its string class java.lang.String.[28]

2000s: -Wformat safety

The need to do something about the range of problems resulting from lack of type safety has prompted attempts to make compilers <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight>-aware.

The Template:Kbd option of GNU Compiler Collection (GCC) allows compile time checks to <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight> calls, enabling the compiler to detect a subset of invalid calls (and issue either a warning or an error, terminating compilation, as set by other flags).[29]

Because the compiler inspects <syntaxhighlight lang="text" class="" style="" inline="1">printf</syntaxhighlight> format specifiers, this feature effectively extends static analysis in C to include formatting aspects.

Replacement syntax

C++

1990s: iostream

C++ added input/output support using the Template:Tt operator to avoid safety issues of printf.[30] This used the type of the arguments to choose which code to execute to print them, avoiding the crashes that are possible with format strings. However, the syntax can be verbose (especially for setting options like precision), and Template:Tt remains available in C++ and is often used instead.

2020s: std::fmt

C++20 added a new API which uses a string consisting of verbatim text and placeholders followed by the values to print.[31] The format string uses curly braces instead of percent signs, based on the syntax used in the Python standard library:[31][32]

<syntaxhighlight lang="C++" class="" style="" inline="1">std::format("The hex value of {} is {:x}.", name, value)</syntaxhighlight>

The recommended implementation is from Victor Zverovich's fmtlib[31][33] which at compile time converts the string and argument types into an optimized formatting object, this is type-safe and syntax errors are detected at compile time. C++23 introduced the functions <syntaxhighlight lang="cpp" class="" style="" inline="1">std::print()</syntaxhighlight> and <syntaxhighlight lang="cpp" class="" style="" inline="1">std::println()</syntaxhighlight> which combined formatting and outputting, and is therefore a functional replacement for <syntaxhighlight lang="text" class="" style="" inline="1">printf()</syntaxhighlight>.[34] It is possible to make a translator from a printf %-string to the same formatting object[35] and this could produce a type-safe Template:Tt, but this was also not added to the spec. No analogous Template:Tt modernization has been introduced, though one has been proposed based on scnlib.[36]

These functions (plus <syntaxhighlight lang="text" class="" style="" inline="1">std::to_chars</syntaxhighlight>) can print floating point accurately using the least number of trailing digits possible, an ability long missing from Template:Tt. Another useful feature is that they ignore the locale.

See also

Notes

Template:Notelist

References

Template:Reflist

Template:CProLang Template:Unix commands

  1. ↑ 1.0 1.1 {{#invoke:citation/CS1|citation |CitationClass=web }}
  2. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  3. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  4. ↑ Template:Cite tech report
  5. ↑ Template:Cite book
  6. ↑ Template:Cite book
  7. ↑ Template:Cite report
  8. ↑ 8.0 8.1 Template:Cite conference
  9. ↑ Template:Cite news
  10. ↑ Template:Man
  11. ↑ 11.0 11.1 Template:Man
  12. ↑ Template:Cite tech report
  13. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  14. ↑ Template:Citation
  15. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  16. ↑ Template:Cite book (2+51+1 pages)
  17. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  18. ↑ Template:Cite book
  19. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  20. ↑ Template:Cite tech report
  21. ↑ Template:Cite book
  22. ↑ Template:Cite book
  23. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  24. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  25. ↑ Template:Cite book
  26. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  27. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  28. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  29. ↑ Template:Cite manual
  30. ↑ Template:Cite journal
  31. ↑ 31.0 31.1 31.2 Template:Cite Q
  32. ↑ Template:Cite book
  33. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  34. ↑ Template:Cite book
  35. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  36. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}