'String Reversal' Bug?

Post Reply
outsider
Posts: 37
Joined: Wed Jan 07, 2009 12:15 pm

'String Reversal' Bug?

Post 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... :(
gfoot
Posts: 269
Joined: Wed Sep 05, 2007 11:34 pm
Location: Brighton, UK

Post 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.
outsider
Posts: 37
Joined: Wed Jan 07, 2009 12:15 pm

Post by outsider »

thanks, got it.
there was an odd character... :D
Post Reply