home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / EZY110-1.ARJ / STRUCT.ARJ / CLIB.ARJ / PASTOC.CPP < prev    next >
C/C++ Source or Header  |  1995-03-28  |  357b  |  20 lines

  1. #include <ezycom.h>
  2. #include <string.h>
  3.  
  4.  
  5. void pPasToC(char *Source,char *&Dest)
  6. {
  7.   if (!Dest) {
  8.     Dest = new char[(byte)Source[0]+1];
  9.   }
  10.   memcpy(Dest,Source + 1,(byte)Source[0]);
  11.   Dest[(byte)Source[0]] = '\0';
  12. }
  13.  
  14. void PasToC(char *Source, char *Dest)
  15. {
  16.   memcpy(Dest,Source + 1,(byte)Source[0]);
  17.   Dest[(byte)Source[0]] = '\0';
  18. }
  19.  
  20.