Source:
Struct list * num1 (list * head)
{
If (a head!=NULL)//using the malloc function returns NULL if a failure here, said there was no memory space,
{
Printf (" successful build \ n ");
return head;//return head node pointer
}
The else printf (" failure \ n ");
exit(0);
}
CodePudding user response:
That is a function definitionStruct list * is the function return value
Num1 is function name
The list * the head is the function of parameter
The operation of the function body {}
CodePudding user response: