home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Exec 5
/
CD_Magazyn_EXEC_nr_5.iso
/
Recent
/
comm
/
mail
/
YAM23src.lha
/
Source
/
extrasrc
/
strmfp.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-12-15
|
332b
|
17 lines
#include <string.h>
#include "extra.h"
/* Append a file name to a path. */
void strmfp(char *name, const char *path, const char *node)
{
size_t len = path ? strlen(path) : 0;
if (len)
{
memcpy(name, path, len);
if (name[len-1] != '/' && name[len-1] != ':')
name[len++] = '/';
}
strcpy(name + len, node);
}