https://github.com/dipanshkhandelwal/elf
OS Lab Mini Project
https://github.com/dipanshkhandelwal/elf
Last synced: 7 months ago
JSON representation
OS Lab Mini Project
- Host: GitHub
- URL: https://github.com/dipanshkhandelwal/elf
- Owner: DipanshKhandelwal
- Created: 2017-09-12T18:24:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T18:21:56.000Z (about 8 years ago)
- Last Synced: 2025-02-15T04:58:42.962Z (8 months ago)
- Language: C
- Size: 70.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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
#include
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...
*/
}
```