项目作者: aashutoshrathi

项目描述 :
Linux Terminal interpreter in C
高级语言: C
项目地址: git://github.com/aashutoshrathi/Elf.git
创建时间: 2017-08-30T20:23:27Z
项目社区:https://github.com/aashutoshrathi/Elf

开源协议:

下载


Elf

OS Lab Mini Project

Instructions

  • First of all fork this repository using Fork
  • Clone your forked repo using

    1. git clone https://github.com/Your-Username/Elf.git
  • Change Directory to Elf, using

    1. cd Elf
  • Add remote branch using

    1. git remote add upstream https://github.com/aashutoshrathi/Elf.git
  • Do your work in a seprate branch never make a function in master itself.

  • You just need to implement function part in Basic Structure in a file named same as function.
  • Create a new branch using

    1. git checkout -b "Branch-Name"
  • When completed push your work, and Send a Pull-Request.

  • Try maintaing code quality, indentation and standards.
  • After review it will be added to Project and merged with our master function.

Basic Structure

  1. #include <unistd.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <stdlib.h>
  5. int function(void); // Declaration
  6. int main() {
  7. char arg[1024];
  8. while(strcmp(arg,"exit") != 0){
  9. printf("myshell$ "); // As we are making bash.
  10. scanf("%s", arg);
  11. switch(arg[0]) {
  12. case 'TriggerKey':
  13. function();
  14. }
  15. }
  16. exit(0);
  17. }
  18. int function() {
  19. /*
  20. Your implementation here...
  21. */
  22. }