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

Go to the source code of this file.

Functions

void blSetExtn (char *File, char *Ext)
 

Detailed Description

Version
V1.21
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:

Revision History:

Definition in file SetExtn.c.

Function Documentation

void blSetExtn ( char *  File,
char *  Ext 
)
Parameters
[in,out]*FileFilename to be modified
[in]*ExtNew extension

Force a filename extension. Modifies the input filename to have the specified extension. Note that the string File should be large enough to cope with longer extensions, if required. Searches back through the string to find a `.' Anything after this is replaced with the specified extension. The search for a `.' stops as soon as a `/',`\', or a `:' is found as these indicate a directory. If no `.' is found, one is appended to the string and the extension is added.

  • 10.02.91 Original
  • 28.05.92 ANSIed
  • 22.06.92 Improved to work from end of string for Unix filenames, etc.
  • 11.03.94 Added check on '\' for MS-DOS
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 125 of file SetExtn.c.