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

Clib Get Character Method


The Clib Get Character method returns one of the following values:

  • The next character from the buffer of the file that the filePointer argument identifies. It returns this value as a byte converted to an integer.
  • If a read error occurs or if the cursor is at the end of the file, then it returns the following value and stores the error number in the errno property:

    EOF

Format

Clib.getc(filePointer)
Clib.fgetc(filePointer)

The arguments for these methods are the same as the arguments for the Clib Clear Error method. For more information, see Arguments for the Clib Clear Error Method.

In most situations, to avoid an error with macro usage, you must use Clib.fgetc.

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