Présentation
Documentation
L'équipe
Sérialisation
 
Programmes
Objets
Libs Utilitaires
Libs Internes
   
 
Editeur
Syntaxes
Windows
Versions
   

SCR/AL1 - TOME III. Les librairies utilitaires

5. Le groupe s_strs

5.7 SCR_free (file s_allc.c:445)

Syntax

int SCR_free(ptr)
void *ptr;

Description

Libère l'espace alloué pour un pointeur donné. Si le pointeur est nul, la fonction n'a pas d'effet.

La fonction de librairie free() est utilisée pour cette fonction.

Exemple

    txt = SCR_malloc(20);
...
SCR_free(txt);
txt = NULL;
SCR_free(txt); ---> pas d'effet car txt == NULL

Voir également

SCR_realloc(), SCR_malloc()

Copyright © 1998-2015 Jean-Marc Paul and Bernard PAUL - Envoyez vos remarques ou commentaires à bernard@xon.be