1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-14 12:55:47 +01:00

Added char* wsterrror(int errnum) to return the string associated with errnum

This works even on platforms that don't provide strerror().
This commit is contained in:
dan
1999-12-11 00:39:57 +00:00
parent 4b69ea222e
commit bb75616aad
3 changed files with 36 additions and 27 deletions

View File

@@ -142,6 +142,9 @@ typedef void (waborthandler)(int);
waborthandler *wsetabort(waborthandler*);
/* don't free the returned string */
char *wstrerror(int errnum);
void wfatal(const char *msg, ...);
void wwarning(const char *msg, ...);
void wsyserror(const char *msg, ...);
@@ -156,6 +159,7 @@ char *wexpandpath(char *path);
/* don't free the returned string */
char *wgethomedir();
void *wmalloc(size_t size);
void *wrealloc(void *ptr, size_t newsize);
void wfree(void *ptr);