So I could conceivably buy a gun, getting the permit and waiting however long the law requires and then go the next day and sell it to some other person.

Keep in mind it depends on which state you live in. About half of the states allow private transfers, the rest require a record of the transfer including North Carolina. All guns being sold across state lines are supposed to go through federally licensed dealers.