Talk:Trimming (computer programming): Difference between revisions

Content deleted Content added
NihlusBOT (talk | contribs)
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 13:
 
::: At least for me the example in C does '''NOT''' work. i doubled checked it, but still believe, that i did not make a mistake. the problematic section is shown below. this causes a segmentation fault in my environment (gcc-4.1.3). --[[User:Alex.blackbit|Alex.blackbit]] 18:32, 1 November 2007 (UTC)
<sourcesyntaxhighlight lang="c">
if (last != input)
last[1] = 0;
</syntaxhighlight>
</source>
 
:::: Alex, this is with strings that don't need trimming? Yeh, last should have been initialized with ret before the loop. I'm fine with just dropping the code though, if it wasn't just a line count thing. [[User:Nevyn|James Antill]] 16:03, 6 November 2007 (UTC)