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

Developer

API Reference

FUNCTION: BASENAME()

Brew Release
Brew MP 1.0.2
See Also
Helper Functions
Description
Returns the filename component of a path.
Params
cpszPath
[]:
The path to be parsed.
Prototype
  •    const char *BASENAME(const char *cpszPath);
    
Return
  • Returns the filename part of cpszPath.
Side Effect
  • None
Comments
A trailing '/' is NOT ignored. The following list of examples shows the strings returned by BASENAME for different paths: cpszPath BASENAME() "/x" "x" "/x/" "" "x" "x" "/x/y" "y" "/" ""