comparison util.h @ 16:a07665727c19

Add status command Add status command to redisplay an error message of the previous command and unsaved changes. Add pwm_err function to display and save error messages.
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Tue, 08 Aug 2017 10:47:04 +0200
parents 60c8ab006e55
children
comparison
equal deleted inserted replaced
15:3380c8fd9776 16:a07665727c19
1 /* 1 /*
2 * Copyright (C) 2016 Guido Berhoerster <guido+pwm@berhoerster.name> 2 * Copyright (C) 2017 Guido Berhoerster <guido+pwm@berhoerster.name>
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining 4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the 5 * a copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including 6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish, 7 * without limitation the rights to use, copy, modify, merge, publish,
36 #define MIN(x, y) (((x) < (y)) ? (x) : (y)) 36 #define MIN(x, y) (((x) < (y)) ? (x) : (y))
37 37
38 void * xmalloc(size_t); 38 void * xmalloc(size_t);
39 void * xrealloc(void *, size_t); 39 void * xrealloc(void *, size_t);
40 char * xstrdup(const char *); 40 char * xstrdup(const char *);
41 char * xvasprintf(char **, const char *, va_list);
41 char * xasprintf(char **, const char *, ...); 42 char * xasprintf(char **, const char *, ...);
42 43
43 #endif /* UTIL_H */ 44 #endif /* UTIL_H */