Data struct in C. Examples of implementation