home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
SQDEV200.ZIP
/
SAMPLES
/
ADDRESS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-23
|
355b
|
20 lines
#include <stdio.h>
#include "prog.h"
#include "msgapi.h"
byte * _fast Address(NETADDR *a)
{
static char temp[30];
char point[10];
sprintf(point, ".%hu", (unsigned)a->point);
sprintf(temp, "%hu:%hu/%hu%s",
(unsigned)a->zone, (unsigned)a->net, (unsigned)a->node,
a->point ? point : "");
return temp;
}