String to Octal



I want to read in an Octal number argument and have it stored as an
octal number. For instance the user will type: ./a.out 777 and it
will store the octal number 777. But it atoi does this as an interger,
and sscanf gives me 0.

.



Relevant Pages

  • Re: String to Octal
    ... will store the octal number 777. ... But it atoi does this as an interger, ... and sscanf gives me 0. ...
    (comp.lang.c)
  • Re: String to Octal
    ... will store the octal number 777. ... But it atoi does this as an interger, ... Not a single goto ... except on social occasions of course. ...
    (comp.lang.c)
  • Re: Convert String To Number
    ... > making some mathematic operations. ... sscanf, atoi, strtol, StrToInt, VarI4FromStr - pick one. ...
    (microsoft.public.vc.language)
  • Re: String to Octal
    ... will store the octal number 777. ... But it atoi does this as an interger, ... If you lie to the compiler, it will get its revenge. ... -- Henry Spencer ...
    (comp.lang.c)
  • Re: Assign very very large integer
    ... 1000 digit number. ... But interger can store only 4 byte. ... general, using a wide variety of languages, and you really ...
    (comp.programming)