The outage for Sunday 24th November has been cancelled.
Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
GetPDBChainLabels.c File Reference
#include <stdlib.h>
#include "pdb.h"
#include "macros.h"

Go to the source code of this file.

Functions

char ** blGetPDBChainLabels (PDB *pdb, int *nChains)
 

Detailed Description

Version
V1.13
Date
26.03.15
Author
Dr. Andrew C. R. Martin
Institute of Structural & Molecular Biology, University College London, Gower Street, London. WC1E 6BT.
andre.nosp@m.w@bi.nosp@m.oinf..nosp@m.org..nosp@m.uk andre.nosp@m.w.ma.nosp@m.rtin@.nosp@m.ucl..nosp@m.ac.uk

This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.

The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.

The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.

Description:

Usage:

Revision History:

Definition in file GetPDBChainLabels.c.

Function Documentation

char** blGetPDBChainLabels ( PDB pdb,
int *  nChains 
)
Parameters
[in]*pdbPDB linked list
[out]nChainsNumber of chains found.
Returns
Allocated array of strings containing chain labels. NULL if unable to allocate memory.

Scans a PDB linked list for chain names. Allocates memory for an array of strings containing these labels which is returned together with the number of chains found.

N.B. You must free the allocated memory for both the array of chains and for each individual chain label when you've finished with it!

  • 25.03.14 Original based on GetPDBChainLabels(). By: CTP
  • 26.03.15 No longer assumes chain labels do not appear again later (i.e. chains L,H,Y,L only returns L,H,Y) By: ACRM

Definition at line 118 of file GetPDBChainLabels.c.