Path: utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!shields From: shields@yunexus.YorkU.CA (Paul Shields) Newsgroups: comp.sys.amiga.programmer Subject: Re: What is setmem in Aztec's c.lib for? Keywords: setmem Message-ID: <21694@yunexus.YorkU.CA> Date: 19 Feb 91 05:53:55 GMT References: <2662@opal.cs.tu-berlin.de> Distribution: comp Organization: York U. Computing Services Lines: 27 alcaman@opal.cs.tu-berlin.de (Alexander Weidt) writes: > I desperatley need some documentation on the setmem function found in >Aztec's c.lib. The function is documented NOWHERE, and i am at a loss of >what to do.. Having a source license for Aztec 5.0d, I grepped through it looking for setmem. There is assembler source string/setmem.a68. Note that the function is identical to memset(), the well-known ANSI C function, except that the second and third parameters are reversed. I suggest you use memset() instead. Here's a quote from the included doc: ; Synopsis ; void setmem(void *s, size_t n, inc c); ; ; Description ; The setmem function copies the value of c (converted to an ; unsigned char) into each of the first n characters of the object ; pointed to by s. ; ; Returns ; The setmem function returns no value. -- parts of the above are copyright 1989 Manx Software Systems, Inc. and are quoted for review purposes only. P.