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 >
Wrap
C/C++ Source or Header
|
1995-03-28
|
357b
|
20 lines
#include <ezycom.h>
#include <string.h>
void pPasToC(char *Source,char *&Dest)
{
if (!Dest) {
Dest = new char[(byte)Source[0]+1];
}
memcpy(Dest,Source + 1,(byte)Source[0]);
Dest[(byte)Source[0]] = '\0';
}
void PasToC(char *Source, char *Dest)
{
memcpy(Dest,Source + 1,(byte)Source[0]);
Dest[(byte)Source[0]] = '\0';
}