It was the closest thing I could think of to describe what I wanted, I didn't get it from anywhere. I'm a beginner programmer - I know some basic things, but I'm certainly not proficient, so I apologize if I don't know the language to describe things quite yet.
getenv will find a variable name that you send it, and return it's value. I want to send a variable to something, and have it return a string that is the name.
getenv() applies to environment variables, which are set and used by the OS for a variety of purposes (e.g. in Windows, CD contains the working directory).
Variable names aren't known at run time. They exist only for the programmer's convenience, and are translated to memory addresses at compile time. So, like I said, what you're asking is impossible (in C/++, anyway).