home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
com
/
bbs
/
lora
/
l2febbs
/
f2lfunz.c
next >
Wrap
C/C++ Source or Header
|
1993-10-22
|
437b
|
39 lines
#include <string.h>
#include "f2lfunz.h"
char *C2P(char *p, char *c)
{
p[0]=strlen(c);
strncpy(p+1,c,p[0]);
return c;
}
char *P2C(char *c,char *p)
{
strncpy(c,p+1,p[0]);
c[p[0]]='\0';
return c;
}
char *NoSlash(char *a)
{
short ll;
ll=strlen(a)-1;
while((ll>0) && (a[ll]=='\\'))
{
a[ll]='\0';
ll--;
}
return a;
}
char *Slash(char *a)
{
strcat(NoSlash(a),"\\");
return a;
}