From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ec422f922489c74b,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,ec422f922489c74b,start X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1992-05-15 10:44:49 PST Xref: sparky comp.unix.ultrix:4432 comp.sys.dec:2932 Path: sparky!uunet!mcsun!uknet!ox-prg!oxuniv!rpb From: rpb@vax.oxford.ac.uk (Ray Bellis) Newsgroups: comp.unix.ultrix,comp.sys.dec Subject: VMS RTL STR$STRIM for DEC Fortran/RISC ? Keywords: str$trim vms risc Message-ID: <1992May14.143649.6025@vax.oxford.ac.uk> Date: 14 May 92 13:36:49 GMT Reply-To: rpb@psy.ox.ac.uk Followup-To: comp.unix.ultrix Organization: Oxford University VAXcluster Does anyone have a C (or Fortran) source module for DEC Fortran/RISC which provides the VMS STR$TRIM function? I've had a go at writing it in C but as yet it doesn't work: VMS definition is STR$TRIM(dst, src [, len]) int str_trim_(char *s1, char *s2, long *l, long l1, long l2) { int i; int l0; *l = 0; l0 = (l1 < l2) ? l1 : l2; for (i = 0; i < l0; ++i) { if (*s2 != ' ' && *s2 != '\t') { *l = i + 1; } *s1++ = *s2++; } } -- Thanks in Advance, Ray. ------------------------------------------------------------------------------ R. P. Bellis E-Mail: Dept. of Experimental Psychology Whois: (RB83) University of Oxford Tel: +44 865 271419 South Parks Road Fax: +44 865 310447 Oxford OX1 3UD ------------------------------------------------------------------------------