Skip to content

Files

0x06-pointers_arrays_strings

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 24, 2023
Aug 24, 2023
Aug 24, 2023
Aug 24, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 26, 2023
Aug 26, 2023
Aug 29, 2023
Aug 29, 2023
Aug 24, 2023
Aug 24, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 25, 2023
Aug 24, 2023
Aug 25, 2023
Aug 24, 2023
Aug 24, 2023
Aug 24, 2023
Aug 24, 2023
Oct 13, 2024
Aug 24, 2023
Aug 29, 2023

0x06-pointers_arrays_strings

Description

This project focuses on advanced usage of pointers, arrays, and strings in C. It covers how to manipulate data using pointers, how to work with multi-dimensional arrays, and how to handle strings more effectively. The project aims to deepen your understanding of these fundamental concepts in C programming.

Resources

Read or watch

Learning Objectives

General

  • What are pointers to pointers and how to use them.
  • What are multi-dimensional arrays and how to use them.
  • How to use and manipulate strings.
  • Scope of variables.
  • How to use the gcc flags -Wall -Werror -pedantic -Wextra -std=gnu89.

Tasks

Task Name File Description
strcat 0-strcat.c Writes a function that concatenates two strings.
strncat 1-strncat.c Writes a function that concatenates two strings, using at most n bytes from src.
strncpy 2-strncpy.c Writes a function that copies a string.
strcmp 3-strcmp.c Writes a function that compares two strings.
I am a kind of paranoid in reverse. I suspect people of plotting to make me happy 4-rev_array.c Writes a function that reverses the content of an array of integers.
Always look up 5-string_toupper.c Writes a function that changes all lowercase letters of a string to uppercase.
Expect the best. Prepare for the worst. Capitalize on what comes 6-cap_string.c Writes a function that capitalizes all words of a string.
Mozart composed his music not for the elite, but for everybody 7-leet.c Writes a function that encodes a string into 1337.
rot13 100-rot13.c Writes a function that encodes a string using rot13.
Numbers have life; they're not just symbols on paper 101-print_number.c Writes a function that prints an integer.
A dream doesn't become reality through magic; it takes sweat, determination and hard work 102-magic.c Adds a line to the code, so that the program prints a[2] = 98, followed by a new line.
It is the addition of strangeness to beauty that constitutes the romantic character in art 103-infinite_add.c Writes a function that adds two numbers.
Noise is a buffer, more effective than cubicles or booth walls 104-print_buffer.c Writes a function that prints a buffer.