[En-Nut-Discussion] NutHeapAvailable() question
Alexander Baranov
baranov at intech21.com
Thu Sep 28 23:16:27 CEST 2006
Well, this is what I have done:
amama = NutHeapAvailable();
ababa = NutHeapAvailable();
fprintf(uart, "\n\rHeap available = %d, %d \r\n", amama, ababa );
And that is what it has printed:
Heap available = -1762, 17624
Can it be so that the first value is incorrect?
Alexander.
----- Original Message -----
From: "Henrik Maier" <hmlists at focus-sw.com>
To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
Sent: Thursday, September 28, 2006 4:33 AM
Subject: Re: [En-Nut-Discussion] NutHeapAvailable() question
> Something is strange here! printf does not see the data type anyway.
> Regardless of the sign of the type, %u should always render a positive
> number. Try %ud and %x and see what happens.
>
> Henrik
> http://www.proconx.com
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
More information about the En-Nut-Discussion
mailing list