X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/507116e319a1470bb0a5040d4d23e5c76955ef97..refs/heads/master:/libdarwin/h/string.h diff --git a/libdarwin/h/string.h b/libdarwin/h/string.h index 23c0098..b4db82e 100644 --- a/libdarwin/h/string.h +++ b/libdarwin/h/string.h @@ -32,6 +32,10 @@ #include #include +#if DARWIN_TAPI +#include "tapi.h" +#endif + __BEGIN_DECLS; /*! @@ -93,6 +97,21 @@ OS_EXPORT OS_COLD OS_WARN_RESULT OS_PURE const char * strerror_np(int code); +/*! + * @function strexit_np + * Returns a human-readable string for the given sysexits(3) code. + * + * @param code + * The exit code for which to obtain the string. + * + * @result + * A human-readable string describing the exit condition. + */ +DARWIN_API_AVAILABLE_20190830 +OS_EXPORT OS_COLD OS_WARN_RESULT OS_PURE +const char * +strexit_np(int code); + /*! * @function symerror_np * Returns the token name of the given {@link errno_t} or POSIX error