---
name: "oath_done"
section: "3"
platform: "linux"
package: "oath-toolkit"
version: "2.6.15-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/oath_done"
---

# oath\_done(3)

API function

## NAME

oath\_done - API function

## SYNOPSIS

**#include \<oath.h\>**

**int oath\_done(** *void***);**

## ARGUMENTS

- void

  ## DESCRIPTION

This function deinitializes the OATH library, which were initialized using **oath\_init()**.  After calling this function, no other OATH library function may be called except for to re-initialize the library using **oath\_init()**.

## RETURNS

On success, **OATH\_OK** (zero) is returned, otherwise an error code is returned.

## REPORTING BUGS

Report bugs to \<oath-toolkit-help@nongnu.org\>. liboath home page: https://oath-toolkit.codeberg.page/ General help using GNU software: http://www.gnu.org/gethelp/

## COPYRIGHT

Copyright © 2009-2026 Simon Josefsson.\
 Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
