[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] End of file? (Beginning of file??)



sslug@sslug (Hans Henrik Hansen) writes:

> >'main' _*skal*_ altid returnerer en værdi af typen 'int', og kaldes med 0
> >(nul), 2 eller 3 parametre
> 
> Altså ikke én parameter?

Det er der vel i grunden ingen hindring for, men det er en ret
ubrugelig oplysning man får uden den anden parameter også. Den første
parameter, int argc, fortæller hvor mange argumenter til programmet
der er, den anden er en peger til argumenterne, char * argv[]. Mange
oversættere tillader en tredje parameter, char * envp[], men det er
vist ikke standard. Man der er ikke en parameter til at fortælle hvor
mange der er af dem, men det skulle være termineret af et NULL.

-- 
Christian Hemmingsen


 
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] *