---
name: "field_just"
section: "3form"
platform: "linux"
package: "ncurses-doc"
version: "6.5+20250216-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/field_just/3form"
---

# field\_just(3form)

retrieve field characteristics

## NAME

**set\_field\_just**, **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(3)](/errno/3.md)).**

- **E\_BAD\_ARGUMENT**

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

## 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.**

## SEE ALSO

**ncurses(3NCURSES) and related pages whose names begin “form\_”** **for detailed descriptions of the entry points.**
