Skip to content
IntTryFromOctStr

IntTryFromOctStr

Description

Parse an octal string into an integer. Accepts an optional 0o or 0O prefix.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    bool IntTryFromOctStr(Int *out, const char *octal) {
        u64 start = 0;
        u64 len   = 0;
        Int out = IntInit();
    
        (void)IntTryFromOctStr(&out, octal);
        return out;
    }
        Int parsed = IntFromOctStr(NULL);
        Int value  = IntInit();
        bool result = !IntTryFromOctStr(&value, NULL);
    
        result = result && IntIsZero(&parsed);
Last updated on