Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!hay3!hayashi From: hayashi@ws.sony.junet (Kazunori Hayashi) Newsgroups: comp.sources.games.bugs Subject: Re: Lunar Lander Message-ID: <25480@wsgw.ws.sony.junet> Date: 4 Jun 89 07:19:28 GMT References: <107518@sun.Eng.Sun.COM> <2042@deimos.cis.ksu.edu> <1571@wjvax.UUCP> Sender: news@ws.sony.junet Lines: 47 In article <1571@wjvax.UUCP>, jeffs@wjvax.UUCP (Jeffery Siou) says: > Well I've redefined the above M_PI and M_PI_2 and I got futher in my compiling > of the game, but now I've come across another problem, > > At the end of the compiling I get the message: > > _memset undefined > Memset is a routine which is supported in library on SYS-V. And BSD supports it as compat-sys5 in its library. Its specification is as follows: memset(addr, fillchar, size) char *s; int fillchar, size; The memset fills memories (first `size' starting at `addr') with `fillchar', and returns `addr'. Actual C-program may be: --- CUT HERE --- char * memset(addr, fillchar, size) register char *addr; register int fillchar, size; { addr += size; while (size-- > 0) { *--addr = fillchar; } return (addr); } --- CUT HERE --- === Kazunori Hayashi Workstation Div. Supermicro Systems Group Sony Corporation 6-7-35, Kitashinagawa Shinagawa-ku, Tokyo, 141 Japan hayashi@ws.sony.junet tel: 03-448-4015 fax: 03-448-4216