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

Go to the source code of this file.

Functions

char * blStrcatalloc (char *instr, char *catstr)
 

Detailed Description

Version
V1.3
Date
26.06.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 strcatalloc.c.

Function Documentation

char* blStrcatalloc ( char *  instr,
char *  catstr 
)
Parameters
[in]*instrString to append to
[in]*catstrString to append
Returns
realloc'd version of instr with catstr appended

Like strcat() but uses a realloc() on instr to make space available.

  • 22.05.99 Original By: ACRM
  • 16.06.99 Initialise outstr to NULL
  • 25.08.99 Fixed bug where testing for NULL outstr instead of catstr
  • 11.07.00 Check that realloc succeeded
  • 07.07.14 Use bl prefix for functions By: CTP
  • 26.06.15 Corrected checks on instr and catstr being null By: ACRM

Definition at line 100 of file strcatalloc.c.