Pure competition in the long run

How does the long run differ from the short run in pure competition? How do profits and losses drive long run adjustment process of pure competition? How can purely competitive firms use the total revenue total cost approach to maximize profits or maximize losses in the short run? What is the difference between a market structure and a characteristic of market structure