The following program illustrates the use of malloc, realloc and free.
Le programme suivant illustre l'utilisation du malloc, realloc et la libère.
The return value is a string allocated by malloc.
La valeur retournée est une chaîne allouée par malloc.
The block on the right is the block of memory malloc allocated.
Le bloc sur la droite, le bloc de mémoire malloc alloué.
The following is the example of using malloc function
Ce qui suit est l'exemple d'employer la fonction de malloc
multi: use a fixed array of timers instead of malloc
multi: utilisez un tableau fixe de temporisations au lieu de malloc
Reducing malloc traffic has had far greater effect than trying to optimize the actual allocator itself.
La réduction du trafic malloc a eu beaucoup plus d'effet que d'essayer d'optimiser l'allocateur réel lui-même.
As data types have different sizes, and malloc returns the space in bytes.
Car les types de données ont différent les tailles, et le malloc renvoie l'espace en bytes.
The result is guaranteed to be adequately aligned for any type of data, just as for malloc.
Le résultat est garanti d'être correctement aligné pour tout type de données, comme pour un malloc.
It includes both shared and private pages, but also other memory space like malloc.
Cela inclut à la fois les pages privées et partagées, mais aussi d'autres espaces de mémoire comme malloc.
You can call the malloc function at any time, and it will request a block of memory from the heap.
Vous pouvez appeler la fonction malloc, à tout moment, et il va demander un bloc de mémoire dans le tas.
When a block is deallocated, it can be reused by a subsequent malloc command, which allows the system to recycle memory.
Lorsqu'un bloc est libéré, il peut être réutilisé par un autre malloc de commande, ce qui permet au système de recyclage de la mémoire.
The malloc function reserves a block of memory of specified size and return a pointer of type void.
La fonction de malloc réserve un bloc de mémoire de taille indiquée et renvoie un indicateur de type vide.
If the connection was dropped before transmitting the size, malloc will reserve an arbitrary size of memory.
Si la connexion est coupée avant de transmettre la taille, malloc réservera une taille arbitraire de mémoire.