This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_vector_ones

Function Documentation

int rc_vector_ones(rc_vector_t *v, int length)

Resizes vector v and fills with ones.

Any existing memory allocated for v is freed if necessary to avoid memory leaks. It is not necessary to call rc_alloc_vector before this.

  • v – Pointer to user’s rc_vector_t struct

  • length[in] Length of vector to allocate memory for


Returns 0 if successful, otherwise returns -1.