Appends a file/dir to the end of a path
Source position: amigados.pas line 1582
function AddPart( |
dirname: pCHAR; |
const filename: pCHAR; |
size: LongWord |
):LongBool; |
dirname: pCHAR; |
const filename: string; |
size: LongWord |
):Boolean; |
dirname |
|
The path to add a file/directory name to. |
filename |
|
The filename or directory name to add. May be a relative pathname from the current directory. (example: foo/bar). Can deal with leading '/'(s), indicating one directory up per '/', or with a ':', indicating it's relative to the root of the appropriate volume. |
size |
|
size in bytes of the space allocated for dirname. Must not be 0. |
dirname |
|
The path to add a file/directory name to. |
filename |
|
The filename or directory name to add. May be a relative pathname from the current directory. (example: foo/bar). Can deal with leading '/'(s), indicating one directory up per '/', or with a ':', indicating it's relative to the root of the appropriate volume. |
size |
|
size in bytes of the space allocated for dirname. Must not be 0. |
This functions adds a file, directory or other path name to a directory path. It will take into account any pre-existing separator characters (':','/'). If filename is an absolute path it will replace the current value of dirname.
|
Returns the last component of a path |
|
|
Returns a pointer to the end of the next-to-last component of a path. |