5144d926e82f0ccdaa08a2e4036594136239b125 jcasper Thu Jun 18 16:11:08 2015 -0700 Adding a function to generate relative URLs diff --git src/inc/filePath.h src/inc/filePath.h index ca4ddb5..aef7fa2 100644 --- src/inc/filePath.h +++ src/inc/filePath.h @@ -16,16 +16,19 @@ char *pathRelativeToFile(char *baseFile, char *relPath); /* Given a base file name and a path relative to that, return * relative path interpreted as if it were seen from the * same directory holding the baseFile. * An example of using this would be in processing include * files. In this case the baseFile would be the current * source file, and the relPath would be from the include * statement. The returned result could then be used to * open the include file. */ void undosPath(char *path); /* Convert '\' to '/' in path. (DOS/Windows is typically ok with * this actually.) */ +char *makeRelativePath(char *from, char *to); +/* Calculate relative path between two absolute ones */ + #endif /* FILEPATH_H */