Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!cit-vax!amdahl!amdcad!jimb From: jimb@amdcad.UUCP (Jim Budler) Newsgroups: net.sources.mac Subject: Re: xbin->MacBinary converter (macbin.c) Message-ID: <13480@amdcad.UUCP> Date: Thu, 23-Oct-86 02:34:30 EDT Article-I.D.: amdcad.13480 Posted: Thu Oct 23 02:34:30 1986 Date-Received: Thu, 23-Oct-86 18:57:17 EDT References: <13400@amdcad.UUCP> <552@sfsup.UUCP> Reply-To: jimb@amdcad.UUCP (Jim Budler) Distribution: world Organization: Advanced Micro Devices, Sunnyvale, California Lines: 43 In article <552@sfsup.UUCP> dwd@sfsup.UUCP (David W. Dougherty) writes: >> X/*--------------------------------------------------------------------* >> X | Version : 2.0 | >> X | Author : Jim Budler | >> X | Copyright Oct 13, 1986 | >> X | Placed in public domain Oct 14, 1986 | >> X | Enjoy | >> X *--------------------------------------------------------------------*/ > >*** YOUR MESSAGE *** :-) > >Great! But where is the function rindex()??? Whoops! In the makefile, sort of: +--------------- | # CFLAGS=-O -Drindex=strrchr -DBZERO # for sysV I think | CFLAGS=-O | | macbin: macbin.c makefile | cc $(CFLAGS) -s -o macbin macbin.c +--------------- The makefile was included in the posting. Change the comments and try it. While I don't promise this makefile will work, I have included this time, unlike in the first version, rindex(), (by way of the define in the makefile), and bzero(), by way of the source ifdef'ed out by the BZERO define. These are the only two Berkeleyisms in the code. That's the best I can do. The bzero() source is from the stringlib package available from mod.sources. It is not mine. The bzero() is not absolutely necessary for the function of the program. If removed, the last XMODEM packet may contain up to 128 bytes of the previous packet. The mac will place the EOF at the right place. Jim -- Jim Budler Advanced Micro Devices, Inc. (408) 749-5806 Usenet: {ucbvax,decwrl,ihnp4}!amdcad!jimb Compuserve: 72415,1200