Skip to content

Latest commit

 

History

History

0x07-pointers_arrays_strings

0x07-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
memset 0-memset.c Writes a function that fills memory with a constant byte.
memcpy 1-memcpy.c Writes a function that copies memory area.
strchr 2-strchr.c Writes a function that locates a character in a string.
strspn 3-strspn.c Writes a function that gets the length of a prefix substring.
strpbrk 4-strpbrk.c Writes a function that searches a string for any of a set of bytes.
strstr 5-strstr.c Writes a function that locates a substring.
Chess is mental torture 7-print_chessboard.c Writes a function that prints the chessboard.
The line of life is a ragged diagonal between duty and desire 8-print_diagsums.c Writes a function that prints the sum of the two diagonals of a square matrix of integers.
Double pointer, double fun 100-set_string.c Writes a function that sets the value of a pointer to a char.
My primary goal of hacking was the intellectual curiosity, the seduction of adventure 101-crackme_password Creates a file that contains the password for the crackme2 executable.