cobcols

画面のカラム数を返します。
制約事項: この関数は、ネイティブ COBOL でのみサポートされます。

構文:

#include "cobscreen.h"

int cobcols (void);

パラメーター:

なし

説明:

この関数は、画面の幅をカラム数で返します。

相当する COBOL 構文:

call "CBL_GET_SCR_SIZE" using ...

例:

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

Windows:
int width = cobcols();
 
printf("Width of screen = %d\n", width);

UNIX:

int width = cobcols();
 
cobprintf("Width of screen = %d\n", width);