defined die function
This commit is contained in:
parent
1147e53f61
commit
135813ed67
@ -21,7 +21,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
void die(char *exit_message);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
@ -57,3 +57,8 @@ int main(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void die(char *exit_msg)
|
||||
{
|
||||
fprintf(stderr, "%s\n", exit_msg);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user