[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] C returnering af array







Christian Nielsen <sslug@sslug> wrote on 15-03-2004 22:16:22:

> Hej!
> Kan det lade sig at gøre at kalde en funktion med at array og få et
> andet array tilbage som svar? Altså noget ligende:
>
> float[MAX_FRACTIONS] cal_fdis(float massfractions[MAX_FRACTIONS],
> fractions);

Det kan det selvfølgelig godt

men jeg ville anbefale at du omskrev funktionen til noget i stil med
int cal_fdis(const float* massfractions, int fractions, float*
return_fractions)
{
...
return EXIT_SUCCESS;

...
return EXIT_FAILURE
...
}

Med venlig hilsen

                                                                       
                                                                       
                                                                       
 Senior                                   IntraVision                  
 Developer                                                             
                                                                       
                                                                       
                                                                       
 Mail:          sslug@sslug        Lyngsø Alle 3,             
                                          2970 Hørsholm,             
                                          Denmark                      
                                                                       
 Direct:        +45 7023 2340             Office:        +45 7023 2340 
                                                                       
 Mobile:        +45 2613 9966             Fax:           +45 7023 2349 
                                                                       
                                          Web:           www.intravision.dk
                                                                       
                                                                       
                                                                       



This e-mail may contain confidential information and is intended only for
the addressee. If you have received this e-mail by mistake, please notify
the sender and delete this mail.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:43 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *