delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/12/21:30:55

From: Nicolas Blais <eletech AT netrover DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with structs
Date: Fri, 12 Jun 1998 21:19:13 -0400
Organization: Elemental Technologies
Lines: 12
Message-ID: <3581D391.CF5EC77A@netrover.com>
References: <3581BEF0 DOT 8790BC2F AT netrover DOT com> <6lsi42$u2$1 AT rosenews DOT rose DOT hp DOT com>
NNTP-Posting-Host: 198.168.87.73
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mmmm. How? (sorry)

Andrew Crabtree wrote:

> >Should copying a Char[20] into a Char[20] work?
> Yes.
>
> >     char caption[20] = button[callsign].caption[20];      //Error 76
> But this shouldn't .  You are assigning here.  Use memcpy instead.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019