Skip to content

os.findheader

starkos edited this page Apr 10, 2021 · 2 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Scan the well-known system locations looking for a header file.

p = os.findheader("headerfile" [, additionalpaths])

Parameters

headerfile is a file name or a the end of a file path to locate.

additionalpaths is a string or a table of one or more additional search path.

Return Value

The path containing the header file, if found. Otherwise, nil.

Remarks

os.findheader mostly use the same paths as os.findlib but replace /lib by /include.

Availability

Premake 5.0 or later.

Clone this wiki locally