From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hawkwind.utcs.toronto.edu ([128.100.102.51]) by archone.tamu.edu with SMTP id <45316>; Thu, 16 Apr 1992 17:12:18 -0500 Received: from localhost by hawkwind.utcs.toronto.edu with SMTP id <2714>; Thu, 16 Apr 1992 18:12:03 -0400 To: rc@archone.tamu.edu Subject: today's rc programming challenge Date: Thu, 16 Apr 1992 17:11:48 -0500 From: Chris Siebenmann Message-Id: <92Apr16.181203edt.2714@hawkwind.utcs.toronto.edu> Given: a string in a variable. Wanted: the same string but without the newline on the end Challenge: how, in the (possible) presence of any character except binary 0 in the string, do to this? Bonus points awarded for the shortest solution, the most efficient solution, and one that can be stuck in a function. - cks