c언어 입력받는 부분을 찾을 수 있을까요?..

xodn158의 이미지

프로그램 중 핵심적인 부분만 가져왔습니다.
scanf 같은 입력 함수도 없는데 입력이 어떻게 되는 건지 알 수 있을까요?
(command_line 에 저장되는게 어떻게 되는건지 모르겠네요)

void process_command()
{
	char command_line[BUFFER_SIZE];
	char *command, *argument1, *argument2;
 
	while (1) {
		printf("$  ");
 
 
		if (readline(command_line, BUFFER_SIZE) <= 0) {
			continue;
		}
 
		command = strtok(command_line, delim); 
		if (strcmp(command, "read") == 0) { //read
			argument1 = strtok(NULL, delim);
			if (argument1== NULL) {
				printf("File name required.\n");
				continue;
			}
			load(argument1);
		}
 
		else if (strcmp(command, "add") == 0) {
			argument1 = strtok(NULL, delim);
			argument2 = strtok(NULL, delim);
 
			if (argument1 == NULL || argument2 == NULL) {
				printf("Invalid arguments.\n");
				continue;
			}
			add(argument1, argument1);
			printf("%s was added successfully.\n", argument1);
		}
 
		else if (strcmp(command, "find") == 0) {
 
			argument1 = strtok(NULL, delim);
			if (argument1 == NULL) {
				printf("Invalid arguments.\n");
				continue;
			}
			find(argument1);	
		}
 
		else if (strcmp(command, "delete") == 0) {
			argument1 = strtok(NULL, delim);
			if (argument1 == NULL) {
				printf("Invalid arguments.\n");
				continue;
			}
			remove(argument1);
		}
		else if (strcmp(command, "status") == 0) {
			status();
		}
		else if (strcmp(command, "save") == 0) {
 
			argument1 = strtok(NULL, delim);
			if (argument1 == NULL) {
				printf("Invalid arguments.\n");
				continue;
			}
			save(argument1);
		}
		else if (strcmp(command, "exit") == 0) {
			break;
		}
	}
}
xodn158의 이미지

아무리 뒤져봐도 입력하는 부분이 어디에 있는지 몰라서 올렸습니다.

세벌의 이미지

readline

xodn158의 이미지

정신줄을 놨는지 만들어놓고 못찾아서 답답해한 제 모습이 웃기네요 ㅋㅋㅋ