C-Shell
A simple shell written in C.
Loading...
Searching...
No Matches
main.c File Reference

The entrypoint to the program. More...

#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
#include "executor.h"
#include "internal/history.h"
#include "job_store.h"
#include "main.h"
#include "parse.h"
#include "shelltypes.h"
#include "terminal.h"

Functions

int main ()
 Execution starts here.
 
int load_settings ()
 Will load configuration file(s).
 
int loop ()
 I keep looping, looping till the user exits.
 
int print_prompt ()
 Prints username@machinename:path>.
 

Detailed Description

The entrypoint to the program.

Author
Swastik Pal
Date
2022-11-03

Function Documentation

◆ load_settings()

int load_settings ( )

Will load configuration file(s).

Not yet implemented.

◆ loop()

int loop ( )

I keep looping, looping till the user exits.

◆ main()

int main ( )

Execution starts here.

◆ print_prompt()

int print_prompt ( )

Prints username@machinename:path>.

Returns
The number of characters printed.