scilab: check char* array typemaps in scilab_li_matrix test
This commit is contained in:
parent
89d4dac99d
commit
1bcc17069c
2 changed files with 4 additions and 6 deletions
|
|
@ -12,11 +12,6 @@
|
|||
%use_matrix_apply(char *);
|
||||
%use_matrix_apply(bool);
|
||||
|
||||
%{
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
|
||||
// int and double matrix functions
|
||||
|
|
@ -69,7 +64,7 @@ template<> void out_matrix_func(char ***resultMatrix, int *nbRowRes, int *nbColR
|
|||
*resultMatrix = (char **) malloc(size * sizeof(char *));
|
||||
for (i=0; i<size; i++) {
|
||||
s = (char *) malloc(sizeof(char)+1);
|
||||
sprintf(s, "%d", i);
|
||||
sprintf(s, "%c", char(65 + i));
|
||||
(*resultMatrix)[i] = s;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue