killchar or killwchar Subroutine

Purpose

Terminal environment query functions.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>
char killchar(void);
int killwchar(wchar_t *ch);

Description

The killchar subroutine returns the current line.

The killchar subroutine stores the current line kill character in the object pointed to by ch. If no line kill character has been defined, the subroutine will fail and the object pointed to by ch will not be changed.

Parameters

*ch

Return Values

The killchar subroutine returns the line kill character. The return value is unspecified when this character is a multi-byte character.

Upon successful completion, the killchar subroutine returns OK. Otherwise, it returns ERR.