The path_extname function returns the extension portion of a
specified pathname. If an extension is present, this function will
also include the dot as part of the extension, i.e., if path
is file.c, then this function returns ".c". If no
extension is present, the function returns an empty string "".
Under VMS, the file version number is not returned as part of the
extension.