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

InsertAt

NAME

InsertAt

PROTOTYPE

#include "ReVarPCifArray.h"

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

EXAMPLE

#include "ReVarPCifArray.h"
#include "CifString.h"

ReVarPCifArray<int> a = new ReVarPCifArray<int>();
a->InsertAt(111);
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