#include <stdio.h>
#include <stdlib.h>

int main(){
	char directory;
	char permissions[9];
	char idk[31];
	char username[31];
	char groupname[31];
	int size;
	char month[3];
	int date;
	char time[5];
	char filename[31];

	size = 0;

	scanf(" %c %9s %31s %31s %31s %d %3s %d %5s %31s", &directory, permissions, idk, username, groupname, &size, month, &date, time, filename);
	
	printf("%c %9s %31s %31s %d %3s %d %5s %31s \n", directory, permissions, idk, username, groupname, size, month, date, time, filename);

	return 0;
}
Code is supposed to take 7 strings and 2 ints. The first string will be split into two with directory taking the first character of the string and then permissions taking the other 9 characters. The printf will print the variables.