delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/14/08:30:49

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: passing a structure??
Date: Thu, 13 Aug 1998 00:31:08 -0300
Organization: NBTel Internet
Lines: 20
Message-ID: <35D25DFC.F62206FE@unb.ca>
References: <35D21F2A DOT FA2A98F2 AT xyz DOT net>
NNTP-Posting-Host: fctnts10c24.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Bjorn Hansen wrote:

> Is it possible to pass a structure to a function ?  If so how would I
> protorype it?

struct mystruct {
 int a,b;
 };

void MyFunc(mystruct a)
{}

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca



- Raw text -


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