Page 1 of 1

'String Reversal' Bug?

Posted: Sat Apr 25, 2009 1:31 pm
by outsider
i try my code but it's always wrong and print:

Expected: 'zzdqbis', got: 'zzdqbis' for input 'sibqdzz'
Expected: 'lfxhiqvxrlrxnmgkcqup', got: 'lfxhiqvxrlrxnmgkcqup' for input 'puqckgmnxrlrxvqihxfl'
Expected: 'xcvp', got: 'xcvp' for input 'pvcx'
Expected: 'vmmemljbjktl', got: 'vmmemljbjktl' for input 'ltkjbjlmemmv'
Expected: 'sppldbflmepdqsc', got: 'sppldbflmepdqsc' for input 'csqdpemlfbdlpps'


can somebody help me,please... :(

Posted: Sat Apr 25, 2009 1:46 pm
by gfoot
View the HTML source to the error response, and make sure you're not outputting any odd characters, e.g. the null terminator for the string.

Posted: Sun Apr 26, 2009 4:57 am
by outsider
thanks, got it.
there was an odd character... :D