What would be the shortest and easiest way to replace any instance of ~ with getenv("HOME") (returns the current user home directory) in a string? Im writing a little program that deals with system...