Home

Awesome

Elf

OS Lab Mini Project

Instructions

git clone https://github.com/Your-Username/Elf.git
cd Elf
git remote add upstream https://github.com/aashutoshrathi/Elf.git
git checkout -b "Branch-Name"

<a name="bs"></a>

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...
    */
}