[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: [CPROG] Tælle antal argumenter i en function



"Jesper Moerk" <sslug@sslug> writes:

> Er der nogen der lige ved om det er muligt at tælle hvor mange argumenter
> en funktion kan tage? Og evt om det er muligt at få typerne på
> argumenterne?

Nej. Den information er ikke tilgængelig på runtime tidspunktet. Ikke
uden at indlæse debug-symbolerne for programmet ligesom gdb gør, og
det kræver at programmet er kompileret med -g. Men det er nok den
forkerte løsning, med mindre du faktisk er ved at udvikle en debugger.

Du vil hellere ikke kunne kalde funktionen med mindre du bruger
specielle biblioteker som fx
http://www.gnu.org/directory/libs/c/ffcall.html.

Hvad er det du vil?

-- 
===============================================================
<sslug@sslug>                           Herlev, Denmark     
<URL:http://www.andreasen.org/>                             <*>   
===============================================================



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 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] *