FORUM Syndrome-OC - Jacky-PC
Programmation
Langage haut niveau(C, Pascal...)
Effacer la mémoire alloué à un pointeur (char)| Bas de page | |
|---|---|
| Auteur | Sujet : Effacer la mémoire alloué à un pointeur (char) |
Google | Posté le 25-09-2004 à 13:00:20 ![]() ![]()
|
Deadog Dain Bramaged | if((Buffer = (char*)calloc(256, sizeof(char))) == NULL) Message édité par Deadog le 25-09-2004 à 13:01:58 |
Deather2 OpenBSD: the way to go! | ok j'ai fais ça, mais ça change rien à mon pb, tjrs le segfault |
Deadog Dain Bramaged | bah ne fait pas le memset ! lol
|
Deather2 OpenBSD: the way to go! | Euh wé mais j'ai besoin d'effacer ce buffer plusieurs fois dans le programme, donc il me faut le memset |
xDiamant | slt :
Message édité par xDiamant le 25-09-2004 à 13:55:11 |
Deather2 OpenBSD: the way to go! | dans la fonction où ma variable est déclarée |
xDiamant | Arf merde le temps que je corrige le post tu es passé |
Deather2 OpenBSD: the way to go! | Tu me dis qu'il attend un void et tu le cast en char ?
|
xDiamant | Ben merde alors |
Deadog Dain Bramaged | pkoi veux tu l'effacer intégrallement ?
|
Deather2 OpenBSD: the way to go! | Voici le code source complet:
|
xDiamant | Re:
Message édité par xDiamant le 25-09-2004 à 15:28:39 |
CryoGen Powered by kitkat© | pour effacer un buffer y'a "bzero (buffer, BUFSIZE);" --------------- I am the bone of my sword... |
Deather2 OpenBSD: the way to go! | C'est ce que je cherchais, et ça marche! Merci merci ! |
Deadog Dain Bramaged | bzero est donnée comme déprécié
|
Deather2 OpenBSD: the way to go! | Rah merde |
Deadog Dain Bramaged | j'ai pas trop le temps de regarder ton code
|
Deather2 OpenBSD: the way to go! | c'pas grave, mon pb est résolu, et en plus xDiamant m'a filé son API pour FTP |
xDiamant | re :
Message édité par xDiamant le 25-09-2004 à 21:36:47 |
Deather2 OpenBSD: the way to go! | Salut,
|
Google | Posté le 25-09-2004 à 22:03:36 ![]() ![]()
|
FORUM Syndrome-OC - Jacky-PC
Programmation
Langage haut niveau(C, Pascal...)
Effacer la mémoire alloué à un pointeur (char)