Welcome to the C_Strings repository! This project contains a collection of exercises focused on string manipulation in the C programming language. These exercises were completed as part of the Foundations of Computer Science course during my Bachelor's Degree in Computer Science and Engineering at the University of Catania.
- Introduction
- Repository Topics
- Getting Started
- Exercises Overview
- Usage
- Contributing
- License
- Releases
In this repository, you will find various exercises designed to deepen your understanding of C strings. These exercises cover key concepts such as string manipulation, memory management, and debugging. By working through these examples, you will gain practical experience in imperative programming and data structures.
This repository covers the following topics:
- Algorithms
- C programming
- Data structures
- Debugging
- English language
- Git
- GitHub
- Imperative programming
- Markdown
- Project management
These topics provide a solid foundation for anyone looking to enhance their skills in computer science.
To get started with this repository, follow these steps:
-
Clone the repository: Open your terminal and run the following command:
git clone https://github.com/Fastdog983/C_Strings.git
-
Navigate to the project directory:
cd C_Strings
-
Compile the code: Use a C compiler like
gcc
to compile the exercises. For example:gcc exercise1.c -o exercise1
-
Run the executable: Execute the compiled program:
./exercise1
By following these steps, you will be able to run the exercises on your local machine.
This repository includes a variety of exercises that focus on different aspects of string manipulation. Below is a brief overview of some of the exercises you will find:
This exercise covers basic operations such as concatenation, comparison, and length calculation. You will implement functions to perform these operations without using standard library functions.
In this exercise, you will write a function to reverse a given string. You will explore different approaches to achieve this, including iterative and recursive methods.
You will implement a function to check if a string is a palindrome. This exercise will help you understand string traversal and character comparison.
This exercise focuses on searching for a substring within a string. You will implement a function that returns the starting index of the first occurrence of a substring.
In this exercise, you will write a function to tokenize a string based on a given delimiter. This will help you understand how to manipulate strings and extract meaningful data.
You will explore dynamic memory allocation in this exercise by creating a function that dynamically allocates memory for a string and handles memory deallocation.
Each exercise comes with comments and explanations to help you understand the concepts better.
To use the exercises in this repository, simply follow the instructions in the Getting Started section. You can modify the code to experiment with different scenarios and improve your understanding of C strings.
For additional information and examples, refer to the comments in each exercise file. Feel free to explore the code and make changes as you see fit.
Contributions are welcome! If you have suggestions for improvements or additional exercises, please feel free to open an issue or submit a pull request.
To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add your message here"
- Push to your branch:
git push origin feature/your-feature-name
- Open a pull request.
Your contributions will help enhance this repository and benefit others in the community.
This project is licensed under the MIT License. See the LICENSE file for details.
For the latest updates and releases, visit the Releases section. Here, you can download and execute the latest files.
If you encounter any issues or have questions, please check the "Releases" section for troubleshooting tips.
Thank you for exploring the C_Strings repository! Happy coding!