summaryrefslogtreecommitdiff
path: root/a-tools.h
blob: e431b4bbf2298ce3a8ec01ead32222105527d6db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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,const char *d, int c);

int strnumcol(const char *s, const char *d);

char *strgrep(const char *s, FILE *f);

int roundValue(int i, int i1);

#endif //__A_TOOLS_H