#include #include #define CAPACITY 100 #define BUFFER_SIZE 20 char *names[CAPACITY]; char *numbers[CAPACITY]; int n = 0; void add(); void find(); void status(); void remove_entry(); void save(); void read(); void main() { char command[BUFFER_SIZE]; while (1) { printf("$ "); scanf_s("%s", command, sizeof(command)); if (strcmp(command, "add") == 0) add(); else if (strcmp(command, "find") == 0) find(); else if (strcmp(command, "status") == 0) status(); else if (strcmp(command, ... 원문 링크 : [c언어][전화번호부][포인터]malloc사용