| version 1.3, 2002/01/21 19:34:59 |
version 1.4, 2002/02/04 18:38:11 |
|
|
| /************************************************************************** |
/************************************************************************** |
| * * |
* * |
| * Credit cards validation. * |
* Credit card validation. * |
| * * |
* * |
| * Programmed by Ondrej Jombik. * |
* Programmed by Ondrej Jombik. * |
| * (c) Copyright 2000 Condy software inc. * |
* (c) Copyright 2000 Condy software inc. * |
| * (c) Copyright 2001-2002 Platon software development group * |
* (c) Copyright 2001-2002 Platon software development group * |
| * All rights reserved. * |
* All rights reserved. * |
| * * |
* * |
| * Updates: 10.10.2000, 9.11.2000, 5.10.2001 * |
* Updates: 10.10.2000, 9.11.2000, 5.10.2001, 4.2.2002 * |
| * * |
* * |
| **************************************************************************/ |
**************************************************************************/ |
| |
|
|
|
| |
|
| #define luhnchk(__s) luhncheck(__s) |
#define luhnchk(__s) luhncheck(__s) |
| |
|
| /* Funkcia overi platnost kreditnej karty podla jej cisla. */ |
#ifdef __cplusplus |
| int luhncheck(const char*s); |
extern "C" { |
| |
#endif |
| |
|
| |
/* |
| |
* luhncheck() |
| |
* |
| |
* Function checks validation of credit card according to number passed |
| |
* as string parameter. Returns 1 if valid, 0 if not. |
| |
*/ |
| |
int luhncheck(const char *number); |
| |
|
| |
#ifdef __cplusplus |
| |
} |
| |
#endif |
| |
|
| #endif /* #ifndef _PLATON_UTILS_LUHNCHK_H */ |
#endif /* #ifndef _PLATON_UTILS_LUHNCHK_H */ |
| |
|