(‘ ĐMW fopen is okay per ANSIg1*kane@pacific.urbana.mcd.mot.com& , mbellon@pacific.urbana.mcd.mot.comF X-From:	kane@pacific.urbana.mcd.mot.com (Patrick E. Kane)To:	VanWarr—3en@eworld.com, mbellon@pacific.urbana.mcd.mot.com9 > I was opening the *binary* sound file with:   fopen("—msamples", "r")> and then using fread to grab samples.  That works okay on my Unix systems, but> not on my M—macs.  I had to change the "r" to "rb" to prevent the Mac from> mucking the binary data.I just checked my A—mNSI C Spec and those flags are documented  in 4.9.5.3:	"r"     open text file for reading 	"rb"   open bin—mary file for  reading	"wb"  open binary file for writingSo our lesson for the month of Feb is to take care—m when porting old UNIX programsto ANSI compliant MW.   My cyber-puppy can come out of his doggy house now.—Pat---D ----------------------- Headers -------------------------------- From kane@pacific.urbana.mcd.—mmot.com  Thu Feb 29 08:40:59 1996Return-Path: kane@pacific.urbana.mcd.mot.comReceived: from mail2.online.ap—mple.com (mail2.online.apple.com [192.215.65.23]) by hp1.online.apple.com (8.6.12/8.6.12) with ESMTP id IAA105—m48 for <VanWarren@eworld.com>; Thu, 29 Feb 1996 08:40:56 -0800Received: from pacific.urbana.mcd.mot.com (pac—mific.urbana.mcd.mot.com [144.191.64.9]) by mail2.online.apple.com (8.6.12/8.6.12) with ESMTP id IAA15542 for —m<VanWarren@eworld.com>; Thu, 29 Feb 1996 08:42:44 -0800Received: from localhost by pacific.urbana.mcd.mot.co—mm (8.6.8.2/1.34.)	id KAA23137; Thu, 29 Feb 1996 10:32:39 -0600Message-Id: <199602291632.KAA23137@pacific.ur—mbana.mcd.mot.com>To: VanWarren@eworld.com, mbellon@pacific.urbana.mcd.mot.comSubject: MW fopen is okay per —aANSIDate: Thu, 29 Feb 96 10:32:37 CSTFrom: "Patrick E. Kane" <kane@pacific.urbana.mcd.mot.com>