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/socket.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <netinet/in.h>
|
void die(char *exit_message);
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
@ -56,4 +56,9 @@ int main(void)
|
|||||||
printf("%s\n", clientMsg);
|
printf("%s\n", clientMsg);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void die(char *exit_msg)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "%s\n", exit_msg);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user