Determine if a string is squeezable: Difference between revisions

Added more examples for the C implementation
(Added C implementation)
(Added more examples for the C implementation)
Line 351:
Final ««« --- Harry S Truman »»»
Length : 20
 
C:\My Projects\networks>a squeeze " --- Harry S Truman " -
Specified Operation : SQUEEZE
Target Character : -
Original ««« --- Harry S Truman »»»
Length : 72
Final ««« - Harry S Truman »»»
Length : 70
 
C:\My Projects\networks>a squeeze " --- Harry S Truman " r
Specified Operation : SQUEEZE
Target Character : r
Original ««« --- Harry S Truman »»»
Length : 72
Final ««« --- Hary S Truman »»»
Length : 71
</pre>
 
=={{header|Factor}}==
<lang factor>USING: formatting fry io kernel math sbufs sequences strings ;
503

edits