#include <stdio.h>
#include <stdlib.h>

int
main(int argc, char **argv)
{
	char *pth = realpath(argv[1], NULL);

	if (pth)
	{
		printf("successfully resolved \"%s\" as \"%s\"\n",
			   argv[1], pth);
		free(pth);
	}
	else
		perror("realpath");
	return 0;
}
