form\_field\_just(3X) Library calls form\_field\_just(3X)

# [NAME](#NAME)

**set\_field\_just**, **field\_just** - retrieve field characteristics

# [SYNOPSIS](#SYNOPSIS)

```
#include <form.h>
```

```
int set_field_just(FIELD *field, int justification);
int field_just(const FIELD *field);
```

# [DESCRIPTION](#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](#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**](#E_OK)

The routine succeeded.

[**E\_SYSTEM\_ERROR**](#E_SYSTEM_ERROR)

System error occurred (see [**errno**(3)](/man/os/ncurses/errno.3)).

[**E\_BAD\_ARGUMENT**](#E_BAD_ARGUMENT)

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

# [PORTABILITY](#PORTABILITY)

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

# [AUTHORS](#AUTHORS)

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

# [SEE ALSO](#SEE_ALSO)

[**curses**(3X)](/man/os/ncurses/curses.3X) and related pages whose names begin “form\_” for detailed descriptions of the entry points.

2024-03-16 ncurses 6.6

---

Document: form_field_just(3x) from ncurses 6.6.20261024-r0 (Chainguard OS)
Source: https://github.com/ThomasDickey/ncurses-snapshots
