cgetc

Gets a character directly from the application screen.

Library:LibC
Classification:Other
Service:File and Directory I/O

Syntax

  #include <stdio.h> 
   
  int cgetc ( void );
  

Return Values

Returns the first character in the screen's input buffer.

Remarks

The cgetc function is a hard-wired console function. Even if stdin is redirected, this function only retrieves characters from the application screen. If your application does not create a screen with the SCREENNAME directive at compile time, your application can receive no input.

For more information on screen creation, see Designating an Application Screen.

See Also