Implementation of Luhn algorithm on C