forked from MarkHofmann11/WWIVTOSS
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathFIDOADR.H
More file actions
37 lines (30 loc) · 711 Bytes
/
FIDOADR.H
File metadata and controls
37 lines (30 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#if !defined(__FIDOADR_DEF_)
#define __FIDOADR_DEF_
#include <stdlib.h>
#if !defined(word)
#define word unsigned int
#endif
#if !defined(byte)
#define byte unsigned char
#endif
/*
* Net node spec
*/
typedef struct {
word zone;
word net;
word node;
word point;
char domain[64];
} FIDOADR;
#define DEF_FIDOADR {0,0,0,0,{0}}
/*
* Functions
*/
void fidoadr_split(char *addr, FIDOADR *fadr);
char *fidoadr_merge(char *addr, FIDOADR *fadr);
char *fidostr(char *dest, word zone, word net, word node);
void fidosplit(char *src, word *zone, word *net, word *node);
void hexadr_split(char *hexadr, word *net, word *node);
char *hexadr_merge(char *hexadr, word net, word node);
#endif