(C) 1998 AROS - The Amiga Research OS
If filename is a fully qualified path, then it will replace the current value of dirname.
If the buffer would have overflowed, then dirname will not have been changed.
UBYTE buffer[128]; buffer[0]='\0'; AddPart(buffer, "Work:", 80); AddPart(buffer, "Programming/Include/exec"); FPuts(Output(), buffer); --> Work:Programming/Include/exec AddPart(buffer, "/graphics", 80); FPuts(Output(), buffer); --> Work:Programming/Include/graphics AddPart(buffer, "gfxmacros.h", 80); FPuts(Output(), buffer); --> Work:Programming/Include/graphics/gfxmacros.h
Moved #include's into first column