From: cuz Date: Mon, 5 May 2003 18:31:22 +0000 (+0000) Subject: Added more functions X-Git-Tag: V2.12.0~1563 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e9484094e4b680a52ad345004dac6cab8d082fff;p=cc65 Added more functions git-svn-id: svn://svn.cc65.org/cc65/trunk@2152 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 31e0062c5..026a76823 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -75,7 +75,7 @@ function. - + @@ -149,9 +149,9 @@ function.

- - - + + + @@ -160,18 +160,18 @@ function. - + - + - + - + @@ -181,14 +181,33 @@ function.

+ + + + + + + + + + + + + + + + + + + @@ -198,6 +217,83 @@ function. Alphabetical function reference

+_heapadd

+ + + +/ + +The minimum blocksize that can be added is 6 bytes; the function will +ignore blocks with smaller sizes. + +, +, +, +, +, + + + + + +_heapmaxavail

+ + + +/ +/. +, +, +, +, +, + + + + + +_heapmemavail

+ + + +/ + +This function is of less use than usually assumed, since the returned +heap space may be available but not in one block. So even if this function +says that several times more heap space is available than needed, may still return +, +, +, +, +, + + + + + _randomize

@@ -467,6 +563,39 @@ be used in presence of a prototype. +calloc

+ + + +/ + +Clearing the memory may not have the expected effect on all platforms: +pointers in the block may not be The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, +, + + + + + cclear

@@ -952,6 +1081,37 @@ will nearly double the speed compared to slow mode. +free

+ + + +/ +/, / +or /. As an exception, if the passed +pointer is +Passing an already free'd block to The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, +, + + + + + getcpu

@@ -1595,6 +1755,34 @@ used in presence of a prototype. +malloc

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, +, + + + + + rand

@@ -1619,6 +1807,44 @@ had been used with an argument of 1. +realloc

+ + + +/ + +The part of the memory block that is returned will have its contents +unchanged. +This function is somewhat dangerous to use. Be careful to save the +pointer you're passing somewhere else, otherwise + + ptr = realloc (ptr, size); + +will loose your only copy of The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, +, + + + + + revers