Skip to content

chadow4/Reimplementing-GNU-C-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Reimplementing GNU C Library & Linux SysCmd + Shell

About the Project

In this project, the standard library was recreated from scratch as well as system commands and a SHELL in order to execute them.

Developped with :

  • C (only system Call)

Getting Started

The project has a makefile in order to compile the library, the Test file, the SHELL file and the different system commands.

the library contains 4 files :

  • mini_string.c

    • mini_printf
    • mini_scanf
    • mini_exit_string
    • mini_strlen
    • mini_strcpy
    • mini_strcmp
    • mini_strncmp
    • stringToInt (ATOI)
    • intToString (ITOA)
    • mini_perror
  • mini_memory.c

    • mini_calloc
    • mini_free
    • mini_exit
  • mini_io.c

    • mini_fopen
    • mini_fread
    • mini_fwrite
    • mini_fflush
    • mini_fclose
    • mini_exit_io
    • mini_fgetc
    • mini_fputc
  • mini_lib.h

List of system commands implemented :

  • mini_touch.c mini_touch file
  • mini_cp.c mini_cp file1 file2
  • mini_echo.c mini_echo message
  • mini_cat.c mini_cat file
  • mini_head.c mini_head -n nline file
  • mini_tail.c mini_tail -n nline file
  • mini_clean.c mini_clean file
  • mini_grep.c mini_grep word file
  • mini_wc.c mini_wc file
  • mini_chmod mini_chmod permissions (octal) file
  • mini_quickdiff mini_quickdiff file1 file2
  • mini_ln mini_ln file1 file2
  • mini_ls mini_ls -l directory
  • mini_mkdir mini_mkdir directory
  • mini_rmdir mini_rmdir directory
  • mini_rm mini_rm file
  • mini_touch mini_touch file

List of internal commands implemented :

  • mini_cd mini_cd directory
  • mini_getenv mini_getenv env
  • mini_env mini_env
  • mini_exit mini_exit

Test File :

  • main.c

SHELL File :

  • shell.c

COMMANDS :

  • Compile All Files : make all
  • Clear All Files : make cleanall
  • Lunch Shell : ./mini_shell
  • Lunch TestFile : ./test

Credits :

  • Created by Julien SANCHEZ
  • MakeFile : DragonKEME

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published