AUPARSE\_GET\_FIELD\_NUM(3) Linux Audit API AUPARSE\_GET\_FIELD\_NUM(3)

# [NAME](#NAME)

auparse\_get\_field\_num - get current field cursor location

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;auparse.h&gt;**

**unsigned int auparse\_get\_field\_num(const auparse\_state\_t \*au);"**

# [DESCRIPTION](#DESCRIPTION)

auparse\_get\_field\_num will retrieve the internal library cursors current field location in the current record. Fields within the same record are numbered starting from 0. This is generally not needed but there are some cases where one may want to know the exact field being looked at.

# [RETURN VALUE](#RETURN_VALUE)

Returns the current field cursor location.

# [SEE ALSO](#SEE_ALSO)

[**auparse\_goto\_field\_num**(3)](/man/os/audit/auparse_goto_field_num.3),[**auparse\_get\_record\_num**(3)](/man/os/audit/auparse_get_record_num.3).

# [AUTHOR](#AUTHOR)

Steve Grubb

Dec 2016 Red Hat

---

Document: auparse_get_field_num(3) from audit 4.2.1-r3 (Chainguard OS)
Source: https://github.com/linux-audit/audit-userspace
