Famotidine, sold under the brand name Pepcid and its generic form, is often the first-line treatment for stomach ulcers. A stomach ulcer is a painful sore that develops in the stomach lining or small ...