TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: James Mckenzie
from: Thomas Seeling
date: 1998-10-08 21:01:18
subject: Need to copy

Hello,


 JM> I received a program which uses memcpy to copy from one variable to 
 JM> another which are built on the same structure.  Other than doing the 
 JM> copy the hard way, what function can I use?

if you want to copy between two variables of the same type, just write it down:

struct hello x,y;

x=y;

This works no matter what contents and what size the struct is.


Tschau...Thomas

--- Msged/NT TE 05
* Origin: Die TeX-Box Travel-Point, 49-6035-921189 V.34/X.75 (2:2461/332.42)
SEEN-BY: 396/1 632/0 371 633/210 260 267 270 371 635/506 728 639/252 670/218
@PATH: 2461/332 300 244/1634 1200 1500 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.