Simple question about array of chars
I'm creating a simple database in C (part of an assignment, actually). The data fields are stored in a struct which has a numerical ID and, more importantly, an array of chars called units, designed to hold the name of the unit a student is enrolled in. To quote the assignment spec:
'units contains (in units to units[total_units-1]), in ascending strcmp order, the unit names of the units in which the student is currently enrolled, with each unit name being a character pointer to dynamically allocated memory of the appropriate size for the number of chars in that individual unit's name (plus terminating '\0').
I'm afraid I'm rather stuck on how to manipulate this character array, basically I don't know how I'd store data in it in a database type scenario.
Any help in much appreciated, links to online tutes or whatever. I've looked online and at the course materials, but I can't find anything that helps. I'm not asking anyone to do my assignment, just a pointer in the right direction.