Ok, I've gone through my notes, books, tutorials, etc. I'm still having a problem with this! Can anyone help me!?!?! Here's what I have to do:

Write an insertion function that inserts an element in the nth position in a list, where 0 means the element is placed at the head of the list. If n is larger than the length of the list, insert the element at the tail of the list. The type definition DATA for elements in the list is defined below (code given to me)
typedef struct {
char name[10];
int age;
int weight;
} DATA;
Write a complete program testing your function. You define a sample list. An element to be inserted to the list and n you should read from the standard input.