Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aashutoshrathi/Elf
Linux Terminal interpreter in C
https://github.com/aashutoshrathi/Elf
c linux terminal terminal-based
Last synced: 2 months ago
JSON representation
Linux Terminal interpreter in C
- Host: GitHub
- URL: https://github.com/aashutoshrathi/Elf
- Owner: aashutoshrathi
- Created: 2017-08-30T20:23:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T18:21:56.000Z (over 7 years ago)
- Last Synced: 2024-11-10T10:45:39.361Z (3 months ago)
- Topics: c, linux, terminal, terminal-based
- Language: C
- Homepage:
- Size: 525 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - Elf
README
# Elf
OS Lab Mini Project### Instructions
* First of all fork this repository using Fork
* Clone your forked repo using
```md
git clone https://github.com/Your-Username/Elf.git
```* Change Directory to Elf, using
```md
cd Elf
```* Add remote branch using
```md
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](#bs) in a file named same as function.
* Create a new branch using
```md
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.```c
#include
#include
#include
#includeint 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...
*/
}
```