passing in an int in octal format

So I'm trying to take an int I acquire from a user and pass it into the chmod function. I can't figure out a way to put leading 0s onto it, and I'm not just printing it so I can't use an sstream. Any ideas?

Thanks in advance
> and I'm not just printing it so I can't use an sstream
if sstream is short for stringstream, then yes, you can.


> Any ideas?
don't convert anything
http://linux.die.net/man/2/chmod
Topic archived. No new replies allowed.