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_zeros

Function Documentation

int rc_vector_zeros(rc_vector_t *v, int length)

Resizes vector v and fills with zeros.

uses calloc to allocate new memory. 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.

Parameters
  • v – Pointer to user’s rc_vector_t struct

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

Returns

Returns 0 if successful, otherwise returns -1.