An officer executing a warrant directing a search of premises or of a vehicle may, if the officer reasonably believes that his safety or the safety of others then present so requires, search for any dangerous weapons by an external patting of the clothing of those present. If in the course of such a frisk he feels an object which he reasonably believes to be a dangerous weapon, he may take possession of the object.
N.C. Gen. Stat. § 15A-255