home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / sqdev200.zip / samples / address.c < prev    next >
C/C++ Source or Header  |  1994-05-23  |  355b  |  20 lines

  1. #include <stdio.h>
  2. #include "prog.h"
  3. #include "msgapi.h"
  4.  
  5. byte * _fast Address(NETADDR *a)
  6. {
  7.   static char temp[30];
  8.   char point[10];
  9.  
  10.   sprintf(point, ".%hu", (unsigned)a->point);
  11.  
  12.   sprintf(temp, "%hu:%hu/%hu%s",
  13.           (unsigned)a->zone, (unsigned)a->net, (unsigned)a->node,
  14.           a->point ? point : "");
  15.  
  16.   return temp;
  17. }
  18.  
  19.  
  20.