[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] Header udtraek



"Egon Andersen, Talura" <sslug@sslug> writes:
 
> Der mangler ligesom at blive allokeret nogle bytes til 'name'! Det er jo
> ikke nok, at det er en pointer!

Selvfølgelig! et par liter kaffe går ned og forstanden går ud
:-), men nu virker det.

> Det der nok sker i praksis er, at name får lov at pege på
> buffer[taeller+i+0+1]
> og derfor bliver din string terminering også til en terminering i
> buffer.
> Du kunne såmænd også have fået 'core' på besøg ;-)
> Prøv med compiler option -Wall og se om den ikke brokker sig bare lidt.

Den bruger jeg skam altid

-- 
  Jakob Hilarius
  http://rrk.kollegienet.dk/~jhsn



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

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