§ 6‑19. When costsallowed as of course to defendant.
Costs shall be allowed as ofcourse to the defendant, in the actions mentioned in G.S. 6‑18 unless theplaintiff be entitled to costs therein. In all actions where there are severaldefendants not united in interest, and making separate defenses by separateanswers, and the plaintiff fails to recover judgment against all, the court mayaward costs to such of the defendants as have judgment in their favor or any ofthem. (C.C.P.,s. 277; Code, ss. 526, 527; Rev., s. 1266; C.S., s. 1242; 2007‑212, s.1.)