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

# [NAME](#NAME)

auparse\_get\_record\_num - get current record cursor location

# [SYNOPSIS](#SYNOPSIS)

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

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

# [DESCRIPTION](#DESCRIPTION)

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

# [RETURN VALUE](#RETURN_VALUE)

Returns the current record cursor location.

# [SEE ALSO](#SEE_ALSO)

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

# [AUTHOR](#AUTHOR)

Steve Grubb

Dec 2016 Red Hat

---

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