Article View: comp.sys.atari.st
Article #1892One more typo in dLibs
From: Michal Jaegermann
Date: Mon, 19 Jun 1989 16:15
Date: Mon, 19 Jun 1989 16:15
21 lines
1066 bytes
1066 bytes
A header file <string.h> for a distributed version of dLibs contains,
among other things, a following macro:
#define bcopy memcpy
This should be replaced with
#define bcopy(source,dest,length) memcpy((dest),(source),(length))
Note an order of arguments. This is still not exactly right, since
memcpy returns 'dest' and bcopy returns some unknown integer, but it
should do in most situations when you will need this macro.
The above costed me some head scratching during a port of some code.
Love y'a all
===============================
Michal Jaegermann
Myrias Research Corporation
Edmonton, Alberta, CANADA
...{ncc,alberta}!myrias!mj
==============================
Technical Details
Message-ID:
<1289@myrias.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!apple!oliveb!pyramid!ncc!myrias!mjShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!apple!oliveb!pyramid!ncc!myrias!mj From: mj@myrias.UUCP (Michal Jaegermann) Newsgroups: comp.sys.atari.st Subject: One more typo in dLibs Keywords: dLibs, Sozobon, bug, bcopy Message-ID: <1289@myrias.UUCP> Date: 19 Jun 89 16:15:57 GMT Organization: Myrias Research, Edmonton Lines: 21