---
name: "form_field_just"
section: "3x"
platform: "macos"
package: "ncurses"
version: "79"
release: "macOS 26.5"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/form_field_just/3x"
---

# form\_field\_just(3x)

retrieve field characteristics

## NAME

**form\_field\_just** - retrieve field characteristics

## SYNOPSIS

**#include \<form.h\>**\
 int set\_field\_just(FIELD \*field, int justification);\
 int field\_just(const FIELD \*field);\

## DESCRIPTION

The function **set\_field\_just** sets the justification attribute of a field; **field\_just** returns a field's justification attribute. The attribute may be one of NO\_JUSTIFICATION, JUSTIFY\_RIGHT, JUSTIFY\_LEFT, or JUSTIFY\_CENTER.

## RETURN VALUE

The function **field\_just** returns one of: NO\_JUSTIFICATION, JUSTIFY\_RIGHT, JUSTIFY\_LEFT, or JUSTIFY\_CENTER.

The function **set\_field\_just** returns one of the following:

- **E\_OK**

  The routine succeeded.

- **E\_SYSTEM\_ERROR**

  System error occurred (see **errno**).

- **E\_BAD\_ARGUMENT**

  Routine detected an incorrect or out-of-range argument.

## SEE ALSO

**curses**(3X) and related pages whose names begin "form\_" for detailed descriptions of the entry points.

## NOTES

The header file **\<form.h\>** automatically includes the header file **\<curses.h\>**.

## PORTABILITY

These routines emulate the System V forms library.  They were not supported on Version 7 or BSD versions.

## AUTHORS

Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S. Raymond.
