Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
filename.c File Reference

Extract parts of filename. More...

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "macros.h"
#include "SysDefs.h"

Go to the source code of this file.

Functions

BOOL blCheckProgName (char *progname, char *expected)
 

Detailed Description

Extract parts of filename.

Version
V1.0
Date
12.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 filename.c.

Function Documentation

BOOL blCheckProgName ( char *  progname,
char *  expected 
)
Parameters
[in]*filenameA PDB filename containing a PDB code
Returns
The PDB code (lower case) NULL if memory allocation fails XXXX if filename blank or NULL or if unable to find PDB code

This routine attempts to convert a filename stem to a PDB code.

  • 12.03.15 Original By: ACRM

Definition at line 95 of file filename.c.