PM_makepath
Make a full pathname from split components.
Declaration
void PMAPI PM_makepath(
char *path,
const char *drive,
const char *dir,
const char *name,
const char *ext)
Prototype In
pmapi.h
Parameters
path |
Place to store full path |
drive |
Drive component for path |
dir |
Directory component for path |
name |
Filename component for path |
ext |
Extension component for path |
Description
Function to make a full pathname from split components. Under Unix the drive component will usually be empty. If the drive, dir, name, or ext parameters are null or empty, they are not inserted in the path string. Otherwise, if the drive doesn't end with a colon, one is inserted in the path. If the dir doesn't end in a slash, one is inserted in the path. If the ext doesn't start with a dot, one is inserted in the path.
The maximum sizes for the path string is given by the constant PM_MAX_PATH, which includes space for the null-terminator.
See Also
PM_splitPath
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com