Content deleted Content added
→Keep the functions. Remove just code: removed C again |
Tag: |
||
(10 intermediate revisions by 8 users not shown) | |||
Line 1:
{{WikiProject banner shell|class=Start|
{{WikiProject Computing|importance=low
|science=yes
|science-importance=low
}}
}}
== C/C++ example needs actual code ==
Line 8 ⟶ 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)
<
if (last != input)
last[1] = 0;
</syntaxhighlight>
:::: 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 47 ⟶ 56:
:I've re-removed the C function, as it seems to be a perennial problem. The other code in the article is well established and used frequently in copy/paste programming. I don't think Wikipedia is the best environment to write new code. It could even be seen as "original research". —[[User:Pengo|Pengo]] 01:08, 2 November 2007 (UTC)
== SAS has a trimmed TRIM ==
the SAS language has a STRIP function, but this only removes the space (ASCII 0x20) characters, not all whitespace. <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/165.155.110.5|165.155.110.5]] ([[User talk:165.155.110.5|talk]]) 14:32, 8 February 2011 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->
== External links modified ==
Hello fellow Wikipedians,
I have just added archive links to {{plural:1|one external link|1 external links}} on [[Trimming (computer programming)]]. Please take a moment to review [https://en.wikipedia.org/w/index.php?diff=prev&oldid=699922317 my edit]. If necessary, add {{tlx|cbignore}} after the link to keep me from modifying it. Alternatively, you can add {{tlx|nobots|deny{{=}}InternetArchiveBot}} to keep me off the page altogether. I made the following changes:
*Added archive https://web.archive.org/20090802041055/http://doc.trolltech.com:80/4.5/qstring.html to http://doc.trolltech.com/4.5/qstring.html#trimmed
When you have finished reviewing my changes, please set the ''checked'' parameter below to '''true''' to let others know.
{{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)
|