Ordinances and regulations controlling the design, construction, materials, alteration and occupancy of any structure for safety, welfare and integrity. Building codes include both technical and functional standards.