API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

STD_MAKEPATH()

Brew Release
Brew MP 1.0.2
See Also
std_splitpath
Description
The std_makepath() constructs a path from a directory portion and a file portion, using forward slashes, adding necessary slashes and deleting extra slashes. This function guarantees NUL-termination of pszDest
Params
cpszDir
[]:
directory part
cpszFile
[]:
file part
pszDest
[]:
output buffer
nDestSize
[]:
size of output buffer in bytes
Interface
Prototype
  •    int std_makepath(const char *cpszDir, const char *cpszFile,
                        char *pszDest, int nDestSize)
    
Return
  • the required length to construct the path, not including NUL-termination
Comments
The following list of examples shows the strings returned by std_makepath() for different paths. Example: cpszDir cpszFile std_makepath() "" "" "" "" "/" "" "/" "" "/" "/" "/" "/" "/" "f" "/f" "/" "/f" "/f" "d" "f" "d/f" "d/" "f" "d/f" "d" "/f" "d/f" "d/" "/f" "d/f"