Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
ReadSimplePIR.c File Reference
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

int blReadSimplePIR (FILE *fp, int maxres, char **seqs)
 

Detailed Description

Version
V2.9
Date
07.07.14
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:

int ReadSimplePIR(FILE *fp, int maxres, char **seqs)

This version (previously called ReadPIR()) is maintained only for compatibility with the old version. It will only read minimal specification PIR files.

Revision History:

Definition in file ReadSimplePIR.c.

Function Documentation

int blReadSimplePIR ( FILE *  fp,
int  maxres,
char **  seqs 
)
Parameters
[in]*fpFile pointer
[in]maxresMax number of residues in chain.
[out]**seqsArray of pointers to sequences
Returns
Number of chains. 0 if error

Read a PIR file containing multiple chains of up to maxres amino acids. Each chain is returned in seqs[]. The number of chains is returned by the routine. 0 is returned if a memory allocation failed

  • 01.06.91 Original
  • 03.03.94 Added check on case before toupper(). Changed name.
  • 18.03.94 Changed getc() to fgetc()
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 121 of file ReadSimplePIR.c.