src/plugin/qsort_utils.c
int sf_get_vector_length(char * st_matrix)
{
    int ncol = SF_col(st_matrix);
    int nrow = SF_row(st_matrix);
    if ( (ncol > 1) & (nrow > 1) ) {
        sf_errprintf ("tried to get the length a %d by %d matrix\n", nrow, ncol);
        return (-1);
    }
    return ( ncol > nrow? ncol: nrow );
}
/**
 * @brief Get length of Stata vector
 *
 * @param st_matrix name of Stata vector (1xN or Nx1)
 * @return Return number of rows or cols.
 */
@brief Get length of Stata vector
@param st_matrix name of Stata vector (1xN or Nx1)
@return Return number of rows or cols.
@brief Get length of Stata vector @param st_matrix name of Stata vector ( 1xN or Nx1 ) @return Return number of rows or cols .
int sf_get_vector_length(char * st_matrix)
{
    int ncol = SF_col(st_matrix);
    int nrow = SF_row(st_matrix);
    if ( (ncol > 1) & (nrow > 1) ) {
        sf_errprintf ("tried to get the length a %d by %d matrix\n", nrow, ncol);
        return (-1);
    }
    return ( ncol > nrow? ncol: nrow );
}
int sf_get_vector_length ( char * st_matrix ) { int ncol = SF_col ( st_matrix ) ; int nrow = SF_row ( st_matrix ) ; if ( ( ncol > 1 ) & ( nrow > 1 ) ) { sf_errprintf ( " \n " , nrow , ncol ) ; return ( -1 ) ; } return ( ncol > nrow ? ncol : nrow ) ; }
@brief Get length of Stata vector
 @param st_matrix name of Stata vector (1xN or Nx1)
 @return Return number of rows or cols.
@brief Get length of Stata vector @param st_matrix name of Stata vector ( 1xN or Nx1 ) @return Return number of rows or cols .