Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!ugle.unit.no!hanche From: hanche@imf.unit.no (Harald Hanche-Olsen) Newsgroups: comp.sys.mac.system Subject: Re: Think C and strncmp Message-ID: Date: 24 Apr 91 15:42:03 GMT References: <23554@unix.SRI.COM> Sender: news@ugle.unit.no Followup-To: comp.sys.mac.system Organization: The Norwegian Institute of Technology, Trondheim, Norway. Lines: 17 In-Reply-To: larson@snmp.sri.com's message of 23 Apr 91 23:55:53 GMT Alan Larson wrote: 3. The strncmp routine now wants a long (actually size_t) as its third argument. This makes it especially difficult to write programs that will port easily to and from unix systems, where that variable is still an int. This would be less of a problem if the compiler did the type conversion, but it doesn't. No? Well if you make sure that a function prototype is present (presumably bu #include'ing the relevant file) then type conversion should occur. - Harald Hanche-Olsen Division of Mathematical Sciences The Norwegian Institute of Technology N-7034 Trondheim, NORWAY