~ubuntu-branches/ubuntu/edgy/ncbi-tools6/edgy

« back to all changes in this revision

Viewing changes to network/wwwblast/Src/viewgif.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2006-07-19 23:28:07 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060719232807-et3cdmcjgmnyleyx
Tags: 6.1.20060507-3ubuntu1
Re-merge with Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: viewgif.c,v 1.7 2005/12/28 20:56:14 merezhuk Exp $
 
2
* ===========================================================================
 
3
*
 
4
*                            PUBLIC DOMAIN NOTICE
 
5
*               National Center for Biotechnology Information
 
6
*
 
7
*  This software/database is a "United States Government Work" under the
 
8
*  terms of the United States Copyright Act.  It was written as part of
 
9
*  the author's official duties as a United States Government employee and
 
10
*  thus cannot be copyrighted.  This software/database is freely available
 
11
*  to the public for use. The National Library of Medicine and the U.S.
 
12
*  Government have not placed any restriction on its use or reproduction.
 
13
*
 
14
*  Although all reasonable efforts have been taken to ensure the accuracy
 
15
*  and reliability of the software and data, the NLM and the U.S.
 
16
*  Government do not and cannot warrant the performance or results that
 
17
*  may be obtained by using this software or data. The NLM and the U.S.
 
18
*  Government disclaim all warranties, express or implied, including
 
19
*  warranties of performance, merchantability or fitness for any particular
 
20
*  purpose.
 
21
*
 
22
*  Please cite the author in any work or product based on this material.
 
23
*
 
24
* ===========================================================================
 
25
*
 
26
* File Name:  $RCSfile: viewgif.c,v $
 
27
*
 
28
* Author:  Ilya Dondoshansky
 
29
*
 
30
* Initial Creation Date: 2002/12/02
 
31
*
 
32
* $Revision: 1.7 $
 
33
*
 
34
* File Description:
 
35
*        CGI program, part of standalone WWW Blast package, pipes graphic overview image back to user.
 
36
*
 
37
* $Log: viewgif.c,v $
 
38
* Revision 1.7  2005/12/28 20:56:14  merezhuk
 
39
* fix for broken gif;
 
40
*
 
41
*
 
42
*/
 
43
#include <stdio.h>
 
44
#include <stdlib.h>
 
45
#include <string.h>
1
46
#include <signal.h>
2
47
#include <fcntl.h>
3
 
#include <stdio.h>
 
48
 
4
49
 
5
50
static void SigAlrmHandler(int);
6
51
static void SigTermHandler(int);
7
52
 
8
53
static char FileName[128];
9
54
 
10
 
main(void) 
 
55
int main(void) 
11
56
{
12
57
    FILE *pp;
13
58
    char tmp_buff[1024];