• This project
    • Loading...
  • Sign in

임에딘 / experiment4

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • experiment4
  • echo.c
  • 임에딘's avatar
    implement exit function · f10723e3
    f10723e3
    임에딘 authored 2018-09-28 23:19:17 +0900
echo.c 190 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <stdio.h>

void EXit()
{
  exit(1);
}

int main() {
  char input[100];

  while(1)
  {
  gets(input);
  puts(input);

  if (input=="exit")
  EXit();
  }

	printf("\n");
	return 0;
}