In the trial of actions upon contracts either of the defendants may show in evidence that he is surety, and if it be satisfactorily shown, the jury in their verdict, or the magistrate in his judgment, shall distinguish the principal and surety, which shall be endorsed on the execution by the clerk of superior court.
N.C. Gen. Stat. § 26-1