Skip to content

aashutoshrathi/Elf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elf

OS Lab Mini Project

Instructions

  • First of all fork this repository using Fork
  • Clone your forked repo using
git clone https://github.com/Your-Username/Elf.git
  • Change Directory to Elf, using
cd Elf
  • Add remote branch using
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
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

#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int function(void); // Declaration

int main() {
	char arg[1024];
	while(strcmp(arg,"exit") != 0){	
		printf("myshell$ "); // As we are making bash.
		scanf("%s", arg);
		switch(arg[0]) {
			case 'TriggerKey':
			function();
		}
	}
	exit(0);
}

int function() {
	/*
        Your implementation here...
    */
}

About

Linux Terminal interpreter in C

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages