/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <stdio.h>
#include <string.h>
#include <array.h>

int main() {
   array char mat[3][10];
   int status;

   mat = (array char [3][10])' '; /* blank space */
   status = str2mat(mat, "abcd");
   printf("status = %d\nmat = %c\n", status, mat);
   str2mat(mat, "abcd", "efghi", "0123456789");
   printf("mat = \n%c\n", mat);
   status = str2mat(mat, "ABCD", "EFGH", "ab23456789", "too many strings");
   printf("status = %d\nmat = \n%c\n", status, mat);
}
