[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] malloc ter sig underligt



On Mon, Sep 06, 2004 at 09:27:43PM +0200, Anders S?ndergaard wrote:
> int *pointer,tal,hent;
> int *pointerto,talto,hentto;
> pointer = (int *) malloc(sizeof(int));
> pointerto = (int *) malloc(sizeof(int));
> ...
> hent = find_numbers(pointer,tal); 
> hentto = find_numbers(pointerto,talto); 
> 
> while (hent>0) {
> printf("%i\n",pointer[hent-1]); /* BOGUS! */
> }
> while (hentto>0) {
> printf("%i\n",pointer[hentto-1]); /* BOGUS! */
> }
                ^^^^^^^
		pointerto?

Rasmus


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

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