Formats given info about a given item -- C program