delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/25/14:45:01

From: mh AT mike DOT franken DOT de (Michael Hirmke)
Subject: Re: return several types in a function
25 Jan 1998 14:45:01 -0800 :
Message-ID: <6mXxGEv$pfB.cygnus.gnu-win32@mike.franken.de>
References: <5f945a6fb209e9707a70ec5c25093f1b AT anon DOT efga DOT org>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hi Anonymous,

>
>Hello!
>
>I know this is a bit off-topic, but I don't know
>where to look for help.
>
>What do I write to get a function to return more
>than one thing and type, lets say in a DLL?
>
>eg foo() should return an int and a char[10].

return a structure containing both types.
Or use call-by-reference.

Btw. - best places to ask things like this are:

gnu.gcc.help
gnu.g++.help
comp.lang.c
comp.lang.c++

>
>-- Martin

Bye.
Michael.
--
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh AT mike DOT franken DOT de
                         | WWW     http://minimike.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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