Medicines that relieve pain are called B.analgesics.
Analgesics are used to achieve analgesia, which is relief from pain. So, analgesics are painkillers.
Antifungals are used to treat fungal infections,
Antivirals are used to treat viral infections, and
Anticellulars are used against specific types of cells, such as cancer cells.