auparse_get_line_number(3)

auparse_get_line_number3

Get line number where record was found

Usage

#include <auparse.h>

unsigned int auparse_get_line_number(const auparse_state_t *au);"

Overview

auparse_get_line_number will return the source input line number for the current record of the current event. Line numbers start at 1. If the source input type is AUSOURCE_FILE_ARRAY the line numbering will reset back to 1 each time a new line in the file array is opened.

Return value

Returns the line number. Line numbers are 1 based, a zero value indicates the line number information is unavailable.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0–8
  2. 9–12
  3. 13
  4. Arch

Author

John Dennis

From audit 4.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.