Avaya Writing Technician Interface Scripts Manual de usuario Pagina 66

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 122
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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 pagina 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 121 122

Comentarios a estos manuales

Sin comentarios