c++ - path question
is there a way to return the current a account in c++?
i'm thinking of how to return something like "/home/babag."
i have a small app that i need to run on more than one box.
once in the account, the paths will be pretty much the
same on each. i'm thinking that if i can return the account
home path, i can store it in one variable and store the
rest of the path in another and put the two together to
form the path for the current box.
for example, each box might be in variable1, while a common
part of the path might be in variable2.
variable1 = /home/_this_account;
variable2 = "/path_to_app";
thanks,
BabaG
|