I am unable to return the char pointer from the getrpath() function. I know that the C function is being called in the below code because a printf can print the realpath. I can’t seem to get the char* back into the main() function though.
Nope… no error at all. It compiles just fine but prints nothing in the main() function… just a blank line. Any ideas? I must have spent hours looking at different ways to get the pointer back into main… Stack Overflow and the Golang Google Groups… I actually made a few different versions but all have the same result.