From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6ec8df5df532a28f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-east.rr.com!news-feed-01.rdc-kc.rr.com!news.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!tornado.socal.rr.com.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: What is Delta?? References: <1147335626.779489.9240@j73g2000cwa.googlegroups.com> <2914908.GvrD7n1EFI@linux1.krischik.com> <1147952419.008146.149720@j55g2000cwa.googlegroups.com> <1ffb2$4471d0f7$45491254$22925@KNOLOGY.NET> <9bebb$447317cb$45491254$1791@KNOLOGY.NET> From: Keith Thompson Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:+/988Mbn0V4ABUkw5k+Nlg4TltA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 May 2006 20:34:32 GMT NNTP-Posting-Host: 66.75.136.120 X-Complaints-To: abuse@rr.com X-Trace: tornado.socal.rr.com 1148416472 66.75.136.120 (Tue, 23 May 2006 13:34:32 PDT) NNTP-Posting-Date: Tue, 23 May 2006 13:34:32 PDT Organization: Road Runner High Speed Online http://www.rr.com Xref: g2news2.google.com comp.lang.ada:4387 Date: 2006-05-23T20:34:32+00:00 List-Id: "Marc A. Criley" writes: > Keith Thompson wrote: >> "Marc A. Criley" writes: >> [...] >>> - Handling message buffers by interfacing to the strcpy() function and >>> using it to move bytes from memory buffer arrays to and from record >>> components. > [...] > >> Most of these sound horrendous, but one of them may not be. >> C's strcpy() function copies a C-style string, terminated by a NUL >> character. If a NUL-terminated string format is imposed by some >> external interface, then interfacing to strcpy() might be the most >> reasonable approach. Hand-written code to do the same thing, either >> in C or in Ada, could easily be less efficient and more error-prone; a >> C library's implementation of strcpy() is free to use system-specific >> performance tricks and is likely to be thoroughly tested. > > Actually, I realized I misspoke -- it's been a few years since I did > this. It wasn't strcpy(), it was memmove() that was used to handle > memory buffering, with all the accompanying 'Address and 'Size > calculations being explicitly performed in code. Ok, 100% horrendous. Congratulations! 8-)} -- Keith Thompson (The_Other_Keith) kst-u@mib.org San Diego Supercomputer Center <*> We must do something. This is something. Therefore, we must do this.