Bioplib
Protein Structure C Library
|
#include <string.h>
Go to the source code of this file.
Functions | |
void | blGetfield (char *buffer, int start, int width, char *str) |
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.
Definition in file getfield.c.
void blGetfield | ( | char * | buffer, |
int | start, | ||
int | width, | ||
char * | str | ||
) |
[in] | *buffer | Buffer from which to read a field |
[in] | start | Starting column (count from 0) |
[in] | width | Width of field to read |
[out] | *str | Field read from buffer |
Reads a column out of a buffer. If the specfied column extends beyond the size of the buffer, then it will be padded with spaces.
Note that the output string must be of at lease width+1 characters to store the field read from the buffer plus the terminating character.
Definition at line 99 of file getfield.c.