Talk:Trimming (computer programming): Difference between revisions

Content deleted Content added
Tagged for WikiProject Computing (needs attention)
Implementing WP:PIQA (Task 26)
 
(3 intermediate revisions by 3 users not shown)
Line 1:
{{WikiProject Computingbanner shell|class=startStart|importance=low
{{WikiProject Computing|importance=low
|attention=yes
|science=yes
|science-importance=low
}}
}}
 
Line 14 ⟶ 15:
 
::: 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)
Line 71 ⟶ 72:
{{sourcecheck|checked=false}}
 
Cheers.—[[User:Cyberbot II|<sup style="color:green;font-family:Courier">cyberbot II</sup>]]<small><sub style="margin-left:-14.9ex;color:green;font-family:Comic Sans MS">[[User talk:Cyberbot II|<span style="color:green">Talk to my owner</span>]]:Online</sub></small> 07:23, 15 January 2016 (UTC)