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

Go to the source code of this file.

Functions

int blChindex (char *string, char ch)
 

Detailed Description

Version
V1.22
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 chindex.c.

Function Documentation

int blChindex ( char *  string,
char  ch 
)
Parameters
[in]*stringA string
[in]chA character for which to search
Returns
The offset of ch in string.

Returns the offset of a character in a string. -1 if not found. This is used in a similar manner to strchr(), but gives an offset in the string rather than a pointer to the character.

  • 10.02.91 Original
  • 28.05.92 ANSIed
  • 06.10.93 Changed name to chindex() to avoid UNIX name clash
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 122 of file chindex.c.