Libreoffice Basic Array Problems In C