/[cvs]/dary/util.h
ViewVC logotype

Contents of /dary/util.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations)
Fri Nov 5 20:48:15 2004 UTC (13 years, 11 months ago) by riso
Branch: MAIN
CVS Tags: Obalky, HEAD
Changes since 1.1: +2 -1 lines
File MIME type: text/plain
Port do mingw; pocty ludi/darov; tlac aj bez oznacenia; slovenske triedenie

1 #ifndef __util_h
2 #define __util_h
3
4 #include <string.h>
5
6 #define ALLOC(type, n) (type *)malloc((n)*sizeof(type))
7
8 #define DATE_ERR -1
9
10 typedef struct allocator {
11 int n, alloc;
12 void **data;
13 } tAllocator;
14
15 void IncAlloc(tAllocator *a);
16 void DecAlloc(tAllocator *a);
17 void InitAlloc(tAllocator *a, int n);
18 void FreeAlloc(tAllocator *a);
19
20 int str2cal(const char *s);
21 char *cal2str(int d);
22
23 int mystrcmp(const char *, const char *);
24
25 #endif

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.26