cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
passing in an int in octal format
passing in an int in octal format
Oct 26, 2015 at 8:40pm UTC
newb4lyfe
(29)
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
Oct 26, 2015 at 10:42pm UTC
ne555
(10692)
> 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.