home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / tel2305s.zip / ENGINE / FAKEOUT.C < prev    next >
C/C++ Source or Header  |  1992-03-18  |  1KB  |  55 lines

  1. /*
  2.  *     Part of NCSA telnet
  3.  *
  4.  *    These routines are needed by the utilitites other than telnet
  5.  *    to avoid unresolved references.  They may be expanded for
  6.  *     more funcionatity at a later date.
  7.  *
  8.  *    New - 6/27/91    Jeff Wiedemeier
  9.  */
  10.  
  11. #include <stdio.h>
  12. #include "whatami.h"
  13. #include "windat.h"
  14. #include "externs.h"
  15.  
  16. /*
  17.  * The following routines are to satisfy look.c and memdebug.c
  18.  */
  19.  
  20. struct twin fool_them, *console=&fool_them;
  21.  
  22. void vprint(int w,char *s)
  23. {
  24.     w=w;    /* No warning this way */
  25. #ifdef DEBUG    /* without debug - ignore messages */
  26.     fprintf(stderr, s);
  27. #else
  28.     s = s;    /* no warning */
  29. #endif /* DEBUG */
  30. }
  31.  
  32. int tprintf(int w,char *s,...)
  33. {
  34.     w=w;    /* No warning this way */
  35. #ifdef DEBUG    /* without debug - ignore messages */
  36.     fprintf(stderr, s);
  37. #else
  38.     s = s;    /* no warning */
  39. #endif /* DEBUG */
  40.     return(0);
  41. }
  42.  
  43. /*
  44.  * None but telnet need inv_port_err (which is called from tcp.c)
  45.  * this prevents unresolved references
  46.  */
  47.  
  48. void inv_port_err(int service, int port, uint8 *ip)
  49. {
  50.     service=service;
  51.     port=port;
  52.     ip=ip;
  53. }
  54.  
  55.