I'm taking a permission number and outputting it as an octal
and I want to compare it with the permission number '777' but I don't know how to compare these two. Anyone?Code:(0777 & perm)
I'm taking a permission number and outputting it as an octal
and I want to compare it with the permission number '777' but I don't know how to compare these two. Anyone?Code:(0777 & perm)
You say you want to compare "it". By it, do you mean perm, or (0777 & perm)? And what's wrong with using == (or < or whatever)?