Strip a set of characters from a string: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 974: | Line 974: | ||
return 0; |
return 0; |
||
}</syntaxhighlight>Output same as above. |
}</syntaxhighlight>Output same as above. |
||
==={{header|Gadget-C}}=== |
|||
<p>Gadget C-library: |
|||
[https://github.com/DanielStuardo/Gadget Gadget C-library in Github] |
|||
</p> |
|||
<syntaxhighlight lang="c"> |
|||
#include <gadget/gadget.h> |
|||
LIB_GADGET_START |
|||
Main |
|||
String r, c = ".$%#\tEste@@@ mensaje será purgado!$$$", set = "$%#@.\t"; |
|||
Stack{ |
|||
Store ( r, Char_del( Upper( c ), set ) ); |
|||
}Stack_off |
|||
Print "Original = [%s]\nChar deleted = [%s]\n", c, r; |
|||
Free secure r,c,set; |
|||
End |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
Original = [.$%# Este@@@ mensaje será purgado!$$$] |
|||
Char deleted = [ESTE MENSAJE SERÁ PURGADO!] |
|||
</pre> |
|||
=={{header|C sharp}}== |
=={{header|C sharp}}== |