---
name: "field_just"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/field_just"
---

# field\_just(3)

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

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