Determining a Triangle using get and pointer

a. Define a struct data type to represent a triangle as 3 points.

b. Write a function get_triangle(), to input the three corners of a triangle and return triangle structure. Using triangle get_triangle()

c. Write a function classify(); that will analize the shape of triangle. The input should be one triangle and the result should be a pointer to a character array. Prototype is: char * classify triangle.

d. Write a main program with loop which will permit user to enter a series of triangles. For each echo the input, call the classify() fuction and print the triangles shape. (isosceles 2 sides equal, equilateral all sides same, or scalene no sides are equal).

The problem I am having so far is how call to classify and determine which shape it is.

#include <stdio.h>

typedef struct {

double x;

double y;

} point;

int main()

{

point A;

point B;

point C;

A . x=5;

A . y=4;

printf("Enter the X and Y for Point A:");

scanf ("%lg%lg", &A.x, &A.y);

printf("Enter the X and Y for Point B:");

scanf ("%lg%lg", &B.x, &B.y);

printf("Enter the X and Y for Point C:");

scanf ("%lg%lg", &C.x, &C.y);

printf ("The values entered for X and Y for Point A: %g\t %g\n",A.x,A.y);

printf("The values entered for X and Y for Point B: %g\t %g\n",B.x,B.y);

printf("The values entered for X and Y for Point C: %g\t %g\n",C.x,C.y);

return 0;

}