Apparently not satisfied with relying on Oracle's built in SUBSTR function, Connor's predecessor decided to write his own. Well, sort of...

Function SUBString(inputStr IN VARCHAR2,
                   startPos IN NUMBER,
                   endPos   IN NUMBER
                  ) RETURN VARCHAR2  IS
        result  VARCHAR2(100);
BEGIN
     result := null;
     SELECT SUBSTR(inputStr,startPos,endPos) INTO result FROM dual;
     RETURN result;
END;

 

Also apparently not satisfied with the "!" operator, the developer behind the code that Wasiliy found wrote his own, too...

PRIVATE void vToggleOnOff(bool_t *pbItem)
{
    if (*pbItem == TRUE)
    {
        *pbItem = FALSE;
    }
    else
    {
        *pbItem = TRUE;
    }
}
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!