Struct Entry {
Char * name;
Char * number;
Char * department;
};
Void addnumber (struct Entry * * library);
Void main (void) {
Struct directory Entry *=NULL;
Addnumber (& amp; Directory);
}
Void addnumber (struct Entry * * library) {
The library (* *). The name="abcde";
}
CodePudding user response:
Do you need for the allocated space, or is the use of the null pointerStruct directory Entry *=malloc (sizeof (struct Entry));