> For the complete documentation index, see [llms.txt](https://42-guide.gitbook.io/42-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://42-guide.gitbook.io/42-guide/piscine-life/c02.md).

# C02

#### **C Piscine C02**

In this module, you’ll deepen your understanding of string manipulation, character classification, and basic transformations in C. This section focuses on building fundamental string-processing functions, teaching you how to efficiently analyze, modify, and validate string data.

***

#### **What You'll Learn:**

1. **String Validation:**
   * Identify whether strings contain specific types of characters (alphabetic, numeric, printable, etc.).
2. **String Transformation:**
   * Perform operations like converting strings to uppercase, lowercase, or capitalizing words.
3. **Reproducing Standard Library Functions:**
   * Implement versions of standard C functions like `strlcpy` and `strcpy`.
4. **Advanced Output:**
   * Handle non-printable characters and memory display in hexadecimal format.

***

#### **Projects in This Section:**

1. **ft\_strcpy:** Reproduce the behavior of `strcpy` to copy a string from `src` to `dest`.
2. **ft\_strncpy:** Implement `strncpy` to copy up to `n` characters from `src` to `dest`.
3. **ft\_str\_is\_alpha:** Validate that a string contains only alphabetic characters.
4. **ft\_str\_is\_numeric:** Check if a string contains only numeric digits.
5. **ft\_str\_is\_lowercase:** Ensure a string consists only of lowercase characters.
6. **ft\_str\_is\_uppercase:** Verify a string contains only uppercase characters.
7. **ft\_str\_is\_printable:** Determine if a string has only printable characters.
8. **ft\_strupcase:** Transform all characters in a string to uppercase.
9. **ft\_strlowcase:** Convert all characters in a string to lowercase.
10. **ft\_strcapitalize:** Capitalize the first letter of every word in a string.
11. **ft\_strlcpy:** Reproduce `strlcpy` for safe string copying with a size limit.
12. **ft\_putstr\_non\_printable:** Print a string, replacing non-printable characters with their hexadecimal representation.
13. **ft\_print\_memory:** Display memory in a formatted manner with hexadecimal and printable characters.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://42-guide.gitbook.io/42-guide/piscine-life/c02.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
