Details: 2 story building
Hot Water Tank located in basement
Vent exits an old basement window and goes up the side of house and goes out around eve.
Question 1:
Are the bends at the eve acceptable or does the pipe need to be held out away from the building for the entire length up the house so that there is no bend at the eve?
Question 2: Where can I find code information for venting hot water tanks?

Thanks for any replies