CodeQL library for C/C++
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)