→ كل المشاريع

orsh

بواسطة @wassim31

12

ORSH - is an Oranios simple shell written in order to understand how shells work .

عن هذا المشروع

ORSH : ORANIOS SHELL Orsh : stands for Oranios shell , which is a simple shell written in C . What Oranios means ? Oranios means that this shell is from Oran , since Oran is my lovely city , you should visit it :) How it works ? I used the REPL way in this shell : that means Read , Execute , Parse , Loop . orshloop() function will be in a constant loop as it name tells , it will read a string by the function orshreadcommand orshreadcommand : it will read from the standard input (keyboard stdin ) character by character , until it reaches the EOF or back to the line flags, so it ends the string with null character. orshsplitcommand : this command will uses strtok() function provided by the standard C library , it will tokenize the string into a bunch of tokens by specifiyng the delimiter as a reference to split (that can be a space or back to the line character , check orshsplitcommand.h , it contains a macro called ORSHTOKDELIM) Remark : #### The strtok function maintains the state of the string being tokenized using an internal static pointer.

من ملف README الخاص بالمشروع على GitHub

النجوم
12
التفريعات
1
الرخصة
GPL-3.0
آخر تحديث
12/06/2024

أضف هذه الشارة إلى ملف README

أظهر أن مشروعك مُدرج على «صُنع في الجزائر».

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/orsh.svg)](https://www.madeinalgeria.dev/projects/orsh)

مشاريع ذات صلة