CodeQL library for C/C++
codeql/cpp-all 2.0.1-dev (changelog, source)
Search

Predicate parseOctal

Gets the number corresponding to the contents of input in base-8. Note: the first character of input must be 0. For example: parseOctal("012345") = 5349.

Import path

import semmle.code.cpp.commons.unix.Constants
int parseOctal(string input)