---
name: "auparse_get_filename"
section: "3"
platform: "linux"
package: "audit"
version: "4.2.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/auparse_get_filename"
---

# auparse\_get\_filename(3)

get the filename where record was found

## NAME

auparse\_get\_filename - get the filename where record was found

## SYNOPSIS

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

**const char \* auparse\_get\_filename(const auparse\_state\_t \****au);"*

## DESCRIPTION

auparse\_get\_filename will return the name of the source file where the record was found if the source type is AUSOURCE\_FILE or AUSOURCE\_FILE\_ARRAY. For other source types the return value will be NULL.

## RETURN VALUE

Returns pointer to a filename or NULL if unavailable.

## SEE ALSO

[**auparse\_get\_line\_number**(3)](/auparse_get_line_number/3.md). [**auparse\_next\_record**(3)](/auparse_next_record/3.md).

## AUTHOR

John Dennis
