Avaya Writing Technician Interface Scripts Manual do Utilizador Página 66

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 122
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 65
Writing Technician Interface Scripts
2-32 114089 Rev. A
<conversion_specification>
can be one of the following:
d or i indicates signed decimal notation.
o indicates unsigned octal notation (no leading zero).
x or X indicates unsigned hexadecimal notation (no 0x prefix).
u indicates unsigned decimal.
c indicates a single unsigned character.
s indicates a character string.
A percent sign (
%) means to print a %.
If you enter the
printf command incorrectly, the console returns one of the
following error messages:
printf: Expected numeric argument; invalid string argument found
The %
<conversion_specification>
expected numeric data in the input
argument, which contained a text string (“hello there”) instead of a number
(123).
printf: Format string has more format codes than there are
arguments
The <
format
> string has more conversion specifications than there are input
arguments (<
p1
>,. . .,<
pN
>).
printf: Invalid format code
You entered an invalid conversion specification in the format string (%z).
Example:
The following example shows a sample printf command:
let slot = 2
printf “Slot: %5d\n” $slot
Vista de página 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 121 122

Comentários a estes Manuais

Sem comentários