Bioplib
Protein Structure C Library
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Pages
src
AppendPDB.c
Go to the documentation of this file.
1
/************************************************************************/
2
/**
3
4
\file AppendPDB.c
5
6
\version V1.11
7
\date 08.10.99
8
\brief PDB linked list manipulation
9
10
\copyright (c) UCL / Dr. Andrew C. R. Martin 1992-6
11
\author Dr. Andrew C. R. Martin
12
\par
13
Institute of Structural & Molecular Biology,
14
University College London,
15
Gower Street,
16
London.
17
WC1E 6BT.
18
\par
19
andrew@bioinf.org.uk
20
andrew.martin@ucl.ac.uk
21
22
**************************************************************************
23
24
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied
25
according to the conditions laid out in the accompanying file
26
COPYING.DOC.
27
28
The code may be modified as required, but any modifications must be
29
documented so that the person responsible can be identified.
30
31
The code may not be sold commercially or included as part of a
32
commercial product except as described in the file COPYING.DOC.
33
34
**************************************************************************
35
36
Description:
37
============
38
39
40
**************************************************************************
41
42
Usage:
43
======
44
45
**************************************************************************
46
47
Revision History:
48
=================
49
- V1.0 22.02.94 Original release
50
- V1.1 23.05.94 Added FindNextChainPDB()
51
- V1.2 05.10.94 KillSidechain() uses BOOL rather than int
52
- V1.3 24.07.95 Added TermPDB()
53
- V1.4 25.07.95 Added GetPDBChainLabels()
54
- V1.5 26.09.95 Fixed bug in TermPDB()
55
- V1.6 12.10.95 Added DupePDB(), CopyPDBCoords()
56
- V1.7 23.10.95 Moved FindResidueSpec() to ParseRes.c
57
- V1.8 10.01.96 Added ExtractZonePDB()
58
- V1.9 14.03.96 Added FindAtomInRes()
59
- V1.10 08.10.99 Initialised some variables
60
61
*************************************************************************/
62
/* Doxygen
63
-------
64
#GROUP Handling PDB Data
65
#SUBGROUP Manipulating the PDB linked list
66
#FUNCTION blAppendPDB()
67
Appends one PDB linked list onto another.
68
*/
69
/************************************************************************/
70
/* Includes
71
*/
72
#include <math.h>
73
#include <stdlib.h>
74
75
#include "
MathType.h
"
76
#include "
SysDefs.h
"
77
#include "
pdb.h
"
78
#include "
macros.h
"
79
#include "
general.h
"
80
81
/************************************************************************/
82
/* Defines and macros
83
*/
84
85
/************************************************************************/
86
/* Globals
87
*/
88
89
/************************************************************************/
90
/* Prototypes
91
*/
92
93
/************************************************************************/
94
/*>PDB *blAppendPDB(PDB *first, PDB *second)
95
-----------------------------------------
96
*/
/**
97
98
\param[in] *first First linked list (may be NULL)
99
\param[in] *second Second linked list
100
\return Start of list
101
102
Appends list second onto first. Returns start of new list (useful if
103
first was NULL).
104
105
- 13.05.92 Original
106
- 09.07.93 Changed to use LAST()
107
- 07.07.14 Use bl prefix for functions By: CTP
108
*/
109
PDB
*
blAppendPDB
(
PDB
*first,
110
PDB
*second)
111
{
112
PDB
*p;
113
114
if
(first ==
NULL
)
115
return
(second);
116
117
p = first;
118
LAST
(p);
119
120
p->
next
= second;
121
return
(first);
122
}
123
pdb.h
Include file for PDB routines.
LAST
#define LAST(x)
Definition:
macros.h:259
NULL
#define NULL
Definition:
array2.c:99
pdb_entry
Definition:
pdb.h:298
macros.h
Useful macros.
blAppendPDB
PDB * blAppendPDB(PDB *first, PDB *second)
Definition:
AppendPDB.c:109
general.h
Header file for general purpose routines.
SysDefs.h
System-type variable type definitions.
MathType.h
Type definitions for maths.
pdb_entry::next
struct pdb_entry * next
Definition:
pdb.h:307
Generated on Tue Oct 24 2017 10:57:03 for Bioplib by
1.8.8