diff options
Diffstat (limited to 'a-tools.h')
-rwxr-xr-x | a-tools.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/a-tools.h b/a-tools.h new file mode 100755 index 0000000..312c5ca --- /dev/null +++ b/a-tools.h @@ -0,0 +1,23 @@ +/* a-tools.h: + some tools from herbert attenberger <herbsl@a-land.de> +*/ + +#ifndef __A_TOOLS_H +#define __A_TOOLS_H + +#include <stdio.h> + +#define FREE(x) if (x) {free(x); x = NULL;} +#define DELETE(x) if (x) {delete x; x = NULL;} + +char *strsub(char *s, int p, int numbers); + +char *strcol(char *s, char *d, int c); + +int strnumcol(const char *s, char *d); + +char *strgrep(char *s, FILE *f); + +int roundValue(int i, int i1); + +#endif //__A_TOOLS_H |