comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc A. Criley" <mcNOSPAM@mckae.com>
Subject: Re: What is Delta??
Date: Tue, 23 May 2006 09:10:22 -0500
Date: 2006-05-23T09:10:22-05:00	[thread overview]
Message-ID: <9bebb$447317cb$45491254$1791@KNOLOGY.NET> (raw)
In-Reply-To: <lnhd3hok0p.fsf@nuthaus.mib.org>

Keith Thompson wrote:
> "Marc A. Criley" <mcNOSPAM@mckae.com> 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.

-- Marc A. Criley
-- McKae Technologies
-- DTraq - XPath In Ada - XML EZ Out



  reply	other threads:[~2006-05-23 14:10 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-11  8:20 What is Delta?? Sathish Veluswamy
2006-05-11 12:49 ` Martin Krischik
2006-05-12 11:12   ` Sathish Veluswamy
2006-05-12 13:49     ` Martin Krischik
2006-05-12 13:57       ` impslayer
2006-05-12 16:38       ` Georg Bauhaus
     [not found]       ` <0bd9625e9e1eg27a2140e8jp1mli25k61n@4ax.com>
2006-05-12 19:27         ` Björn Persson
2006-05-13  6:52           ` Martin Krischik
2006-05-13 12:39             ` Spelling and netiquette (was: What is Delta??) Ludovic Brenta
2006-05-13  6:26         ` What is Delta?? Martin Krischik
2006-05-13 19:47           ` Jeffrey R. Carter
2006-05-14  2:29             ` Keith Thompson
2006-05-14 18:21               ` Jeffrey R. Carter
2006-05-15 23:14                 ` Keith Thompson
2006-05-15  7:33             ` Martin Krischik
2006-05-13 16:25         ` Craig Carey
2006-05-13 21:59 ` Craig Carey
2006-05-14 11:46   ` Martin Krischik
2006-05-17 14:46     ` M E Leypold
2006-05-18 11:40       ` Ludovic Brenta
2006-05-18 18:08         ` M E Leypold
2006-05-22 14:55           ` Marc A. Criley
2006-05-22 15:22             ` Dmitry A. Kazakov
2006-05-22 16:33             ` Jeffrey R. Carter
2006-05-22 20:57             ` Keith Thompson
2006-05-23 14:10               ` Marc A. Criley [this message]
2006-05-23 20:34                 ` Keith Thompson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox