Article View: comp.lang.c.moderated
Article #2126Re: 2-d arrays
From: James Hu
Date: Fri, 01 Mar 1996 15:32
Date: Fri, 01 Mar 1996 15:32
15 lines
874 bytes
874 bytes
>>>>> "Devin" == Devin Redlich <dredlich@gulf.csc.UVic.CA> In article <4gsbdq$4aj@solutions.solon.com> Devin writes: Devin> If I have a 2 dimensional array x[4][4] and I want to make a Devin> copy of all the data in x, in, say, y[4][4], what would be the Devin> most efficient way of copying the data? If they're really arrays, then memcpy(y,x,16*sizeof(x[0][0])); should provide adequate performance. -- James
Technical Details
Message-ID:
<4h75au$4m8@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4gsbdq$4aj@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: jxh@plethora.cs.wustl.edu (James Hu) Newsgroups: comp.lang.c.moderated Subject: Re: 2-d arrays Date: 1 Mar 1996 09:32:46 -0600 Organization: Washington University, St. Louis Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4h75au$4m8@solutions.solon.com> References: <4gsbdq$4aj@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Newsreader: Gnus v5.1