04642be43be61ed4968fd564cd1b062baa73ea74Timo Sirainen/* expand ~/ or ~user/ in beginning of path. If user is unknown, the original
04642be43be61ed4968fd564cd1b062baa73ea74Timo Sirainen path is returned without modification. */
04642be43be61ed4968fd564cd1b062baa73ea74Timo Sirainen/* Returns 0 if ok, -1 if user wasn't found. */
4b9a8c4fe16db92f5c7dcf474eb0d906c361122cTimo Sirainen/* Expand ~/ in the beginning of the path with the give home directory. */
4b9a8c4fe16db92f5c7dcf474eb0d906c361122cTimo Sirainenconst char *home_expand_tilde(const char *path, const char *home);