Production of resistant starch from acid-modified amylotype starches with enhanced functional properties