X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/65bb0fff13f2099c2746d6b8c9ad2421e9419d07..71b90230c575ecd1d2f85f8fb22c7e875bca8d3a:/lib/wstat.c diff --git a/lib/wstat.c b/lib/wstat.c index 6d4cd29..0fd124c 100644 --- a/lib/wstat.c +++ b/lib/wstat.c @@ -17,6 +17,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ +/** @file lib/wstat.c + * @brief Convert wait status to text + */ #include @@ -30,6 +33,10 @@ #include "wstat.h" #include "printf.h" +/** @brief Convert exit status to text + * @param w Exit status (e.g. from waitpid()) + * @return Allocated string containing description of status + */ const char *wstat(int w) { int n; char *r;