coblines

画面上の行数を返します。
注: この関数は、ネイティブ COBOL でのみサポートされます。

構文:

#include "cobscreen.h"

int coblines (void);

パラメーター:

なし

説明:

この関数は、画面の高さを行数で返します。

相当する COBOL 構文:

call "CBL_GET_SCR_SIZE" using ...

例:

次の例は、画面の行数を取得してメッセージとともに表示します。

Windows:
int depth = coblines();

printf("Depth of screen = %d\n", depth);
UNIX:
int depth = coblines();

cobprintf("Depth of screen = %d\n", depth);