Table of Contents

Method IsMusl

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

IsMusl()

Determines whether the current system uses the musl C library.

public static bool IsMusl()

Returns

bool

true if the musl C library is detected; otherwise, false.

Remarks

This method checks the version information of the ldd command to determine if the musl C library is in use. It returns true if the output of ldd --version contains the string "musl", ignoring case. If the ldd command is unavailable or an error occurs during execution, the method returns false.