TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Francois Thunus
from: George White
date: 1999-01-13 09:46:06
subject: Pl/I

Hi Francois,

You wrote to Murray Lesser:

FT> ML> *process langlvl(saa2), limits(extname(31)), libs, not('^');
FT> ML>  toupper: proc(infile) options (main noexecops);
FT> ML>     dcl infile char(100) var;
FT> ML>     dcl translate builtin;
FT> ML>     dcl (From value('abcdefghijklmnopqrstuvwxyz'),
FT> ML>          To value('ABCDEFGHIJKLMNOPQRSTUVWXYZ')) char(26);
FT> ML>     display (translate(infile,to,from));
FT> ML>   end toupper;

FT> ML>     I leave it as an exercise for the reader to write the equivalent in
FT> ML> Pascal :-).

FT>Borland Pascal:
FT>upcase();
FT>:-)

Where is the output? :-)
(and the input?).

A "C" equivalent to Murrays code would be longer...

George

 * SLMR 2.1a * Wishing you a Peaceful and Prosperous New Year

--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 635/444 506 728 639/252
SEEN-BY: 670/218
@PATH: 440/4 255/1 251/25 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.