Logo 
Search:

Networking Articles

Submit Article
Home » Articles » Networking » TCP/IPRSS Feeds

TCP/IP program to print an error message and exit

Posted By: Milind Mishra     Category: Networking     Views: 1725

TCP/IP program to print an error message and exit.

Code for TCP/IP program to print an error message and exit in Networking

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

/*VARARGS1*/int
errexit(constchar *format, ...)
{
    va_list    args;

    va_start(args, format);
    vfprintf(stderr, format, args);
    va_end(args);
    exit(1);
}
  
Share: 


Didn't find what you were looking for? Find more on TCP/IP program to print an error message and exit Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of TCP/IP program to print an error message and exit is from India.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!