Siebel eScript Language Reference > C Language Library Reference > Clib File Input and Output Methods >

Clib Write Character Method


The Clib Write Character method writes a character, converted to a byte, to a file that you specify. It returns one of the following values:

  • If successful, then it returns the value that the char argument contains.
  • If not successful, then it returns the following value:

    EOF

The following type of character that the char argument contains determines how this method writes the character:

  • String. It writes the first character of the string to the file.
  • Number. It writes the character that corresponds to the Unicode value for this number to the file.
Format

Clib.fputc(char, filePointer)
Clib.putc(char, filePointer)

Clib.fputc writes a character to a file. Clib.putc writes a character to the screen. In most situations, to avoid an error with macro usage, you must use Clib.fputc.

Table 148 describes the arguments for the Clib Write Character method.

Table 148. Arguments for the Clib Write Character Method
Argument
Description

char

A one character string or variable that contains a single character.

filePointer

A file pointer that the Clib Open File method returns.

Siebel eScript Language Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.