#include <stdio.h>
#include <string.h>

int main() {
   array char mat[3][10];
   int status;
   status = str2mat(mat, "abcd");
   printf("status = %d\nmat = a b c d\n\n\n\n", status);
   str2mat(mat, "abcd", "efghi", "0123456789");
   printf("mat = \na b c d\ne f g h i\n0 1 2 3 4 5 6 7 8 9\n\n");
   status = str2mat(mat, "abcd", "efghi", "0123456789", "too many strings");
   printf("status = %d\n", status);
   printf("mat = \na b c d\ne f g h i\n0 1 2 3 4 5 6 7 8 9\n\n");
}
