home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
USCX
/
PC-TOOLS.ZIP
/
FTRIM.C
< prev
next >
Wrap
Text File
|
1986-03-29
|
342b
|
20 lines
#include <stdio.h>
#define MAXLINE 256
char *strcpy();
trim_fspec(t,s,n)
char *s, *t;
int n;
{
char *p, *rindex();
if (strlen(s) > n)
if ((p = rindex(s,'\\')) != NULL)
s = p + 1;
else if ((p = rindex(s,'/')) != NULL)
s = p + 1;
return strcpy(t,s);
}