Date: Wed, 9 Sep 2026 12:27:27 -0400
From: "Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com]" <djgpp@delorie.com>
I was running some code with -Wall -Wextra and I was using the example phys_mem_left() code in your documentaiton for _go32_dpmi_meminfo
located at http://www.delorie.com/djgpp/doc/libc/libc_438.html
In here it mentions "The only field that is guaranteed to have useful
data is available_memory. Any unavailable field has -1 in it.".-a The compiler complained on this line from example code: if (info.available_physical_pages != -1)
This makes sense because they are u_long's so therefore they cannot have negative values in them.-a I imagine that you want to check != 0 or is
the example completely incorrect?
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 55:40:57 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
3 files (2,684K bytes) |
| Messages: | 285,687 |