B
Barry Schwarz
ok..so what I did until now is this...
the main file is this one:
------------------------------(progmail.c)----
#include <stdio.h> /* para funcoes como printf, scanf, etc */
#include <stdlib.h> /* para a funcao exit */
#include <string.h> /* para funcoes relacionadas com strings */
#define DIMMAIN 20
void comandom(void);
This prototype says the function has no parameters.
snip
void comandom(MAIL *ptr)
This definition says the function has one parameter. When you lie to
the compiler, you invoke undefined behavior.
snip{
printf("From: \n"); gets(ptr->from);
printf("To: \n"); gets(ptr->to);
printf("Subject:\n"); gets(ptr->sub);
printf("Message:\n"); gets(ptr->msg);
}
------------------------------
<<Remove the del for email>>