def fix_macro_int(lines, key, value):
    """
    Fix lines to have new value for a given key

    lines: array of strings
        where key to be found

    key: string
        key

    value: int
        set to be for a given key

    returns: bool
        True on success, False otherwise
    """
    l = -1
    k =  0
    for line in lines:
        if key in line:
            l = k
            break
        k += 1

    if l >= 0:
        s = lines[l].split(' ')
        lines[l] = s[0] + " " + str(value) + "\n"
        return True

    return False