Welcome to the repository for assignments from the System Programming Laboratory course at the Open University, focusing on C language programming. Each folder in this repository represents a different assignment completed during the course.
Description:
This program get a string as a parameter and sends it to a function that detects sequences in it, shortens it accordingly, and prints it when it is shortened.
Files:
abc.c
: Runs the programmakefile
:
Description:
This program performs b bits rotation on the a parameter.
Files:
my_rottate.c
: This program performs a b-bit rotation on the a parameter.makefile.h
:
Description:
The program compares the len bytes, starting from where 1b points, to the len bytes, starting from where 2b points
Files:
my_bcmp.c
: The program compares the len bytes, starting from where 1b points, to the len bytes, starting from where 2b pointsmakefile.h
:
Description:
This program performs set operations on six sets (A, B, C, D, E, F) using various commands.
Files:
myset.c
: Main program that utilizes set operations and functions.set.c
: File defining set operations and functions.set.h
: Header file defining set operations and functions.valid_func.c
: File containing validation functions for the program.valid_func.h
: Header file containing validation functions for the program.makefile.h
:
Description:
The Permutation Checker is a simple C program designed to check for permutations of a given word within a text file.
Files:
permut.c
: Utilizes theis_permut
function to identify and print permutations found in the specified file.permut.h
: Header file.makefile.h
:
To explore the assignments, navigate to the respective folders and review the README or source code files. Each assignment folder contains its own set of instructions, source code, and necessary files. How to Run:
- Open a terminal in the project directory.
- Run the make command that will use the makefile
The terminal output will be somthing like this:
make
gcc -g -ansi -Wall -pedantic my_progrem.c -o run
- Run the command:
./run
- To end your input press
enter
thanctrl
Z
andenter
again.
- Ensure you have a compatible C compiler (e.g., GCC) installed on your system.
- If running on Windows with MinGW, use
mingw32-make
instead ofmake
. - You can also run useing the VS comailer.
Feel free to explore the assignments, learn from the code, and use them as a reference for your own learning journey. If you have any questions or improvements, feel free to open an issue or contribute!
Happy coding!