Re: Function from C/PHP to Python

2008-08-07 Thread Grom
On 7 Sie, 06:01, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Wed, 06 Aug 2008 20:15:11 -0700, Grom wrote: > > Hello everyone :) > > I have one problem with that function in C > ... > > Can someone help me to rewrite it to python? > > > There is the same function, in PHP: > ..

Re: Function from C/PHP to Python

2008-08-06 Thread Steven D'Aprano
On Wed, 06 Aug 2008 20:15:11 -0700, Grom wrote: > Hello everyone :) > I have one problem with that function in C ... > Can someone help me to rewrite it to python? > > There is the same function, in PHP: ... > Please... its very important to me I don't know C or PHP. But since it's important, an

Function from C/PHP to Python

2008-08-06 Thread Grom
Hello everyone :) I have one problem with that function in C int calc_passcode(const char* pass, char* code) { int magic1 = 0x50305735; int magic2 = 0x12345671; int sum = 7; char z; while ((z = *pass++) != 0) { if (z == ' ') continue; if (z == '\t') continue;