next up previous contents
Next: Length Up: Methods Previous: Add   Contents

InsertAt

NAME

InsertAt

PROTOTYPE

#include "ReVarCifArray.h"

unsigned ReVarCifArray<TYPE>::InsertAt(unsigned p, const TYPE *s, unsigned n);

EXAMPLE

#include "ReVarCifArray.h"
#include "CifString.h"

ReVarCifArray<CifString> a = new ReVarCifArray<CifString>();
a->InsertAt("elem1");
PURPOSE

InsertAt() Inserts the data pointed to by s into the array. Up to n elements are inserted, (truncating if necesary), starting at position p, (counted by zero).

RECEIVES

None

RETURN VALUE

Returns number of elements inserted, or 0 if error.

REMARKS

None



Olivera Tosic 2002-06-12