User Tools

Site Tools


uphp:functions:freemem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

uphp:functions:freemem [2017/04/06 08:37]
jeff
uphp:functions:freemem [2021/09/13 05:57]
Line 1: Line 1:
-======freemem====== 
- 
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
- 
-Return free memory space 
- 
-====Description==== 
- 
-<well size="sm"><html><span style="font-size:125%;color:green">int 
-<span style="color:black"></html>[[freemem]] 
-( ) 
-</well> 
- 
-====Parameters==== 
- 
-None 
- 
-====Return Value==== 
- 
-The number of bytes available in RAM 
- 
-====Example==== 
- 
-<code php> 
-<pre><? 
-  $free=freemem(); 
-  print($free." bytes free memory\r\n"); 
-  if ($free<10000) print("Memory is getting low..."); 
-?></pre> 
-</code> 
- 
-====See Also==== 
- 
-[[disk_free_space()]] - Return free space on microSD card 
- 
-[[freestack()]] - Return free stack space 
- 
-[[mem_dump()]] - Write the current memory map to /dump.txt 
- 
-[[mem_usage()]] - Write memory usage to standard output 
- 
-[[nvram_free()]] - Return free NVRAM space 
- 
-[[uphp:programming_the_wattmon?s[]=memory#challenges|Challenges to Programming the Wattmon:  Memory Limits]] 
  
uphp/functions/freemem.txt · Last modified: 2021/09/13 05:57 (external edit)