Logo 
Search:

Networking Articles

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

TCP/IP program to end session scripting

Posted By: Milind Mishra     Category: Networking     Views: 2045

TCP/IP program to end session scripting.

Code for TCP/IP program to end session scripting in Networking

#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include "local.h"/*------------------------------------------------------------------------ * unscript - end session scripting *------------------------------------------------------------------------ *//*ARGSUSED*/int
unscript(FILE *sfp, FILE *tfp, int c)
{
    struct stat    statb;

    if (scrfp == 0) {
        fprintf(tfp, "\nNot scripting.\n");
        return 0;
    }
    (void) fflush(scrfp);
    if (fstat(fileno(scrfp), &statb) == 0)
        fprintf(tfp, "\n\"%s\": %d bytes.\n", scrname,
                statb.st_size);
    (void) fclose(scrfp);
    scrfp = 0;
    return 0;
}
  
Share: 


Didn't find what you were looking for? Find more on TCP/IP program to end session scripting Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of TCP/IP program to end session scripting 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!