Logo 
Search:

Networking Articles

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

TCP/IP program to cleanup and exit with an error message

Posted By: Milind Mishra     Category: Networking     Views: 1509

TCP/IP program to cleanup and exit with an error message.

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

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

#include "local.h"int
cerrexit(constchar *format, ...)
{
    va_list    args;

    va_start(args, format);
    vfprintf(stderr, format, args);
    (void) tcsetattr(0, TCSADRAIN, &oldtty);
    va_end(args);
    exit(1);
}
  
Share: 


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

Milind Mishra
Milind Mishra author of TCP/IP program to cleanup and exit with an error message 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!