Skip to content

Latest commit

 

History

History

0x05-pointers_arrays_strings

0x05-pointers_arrays_strings

Description

This project focuses on pointers, arrays, and strings in C. It covers how to use pointers to access and manipulate data, how to work with arrays, and how to handle strings effectively. The project aims to provide a deep understanding of these fundamental concepts in C programming.

Resources

Read or watch

Learning Objectives

General

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

Tasks

Task Name File Description
98 Battery Street, the OG 0-reset_to_98.c Writes a function that takes a pointer to an int as parameter and updates the value it points to to 98.
Don't swap horses in crossing a stream 1-swap.c Writes a function that swaps the values of two integers.
This report, by its very length, defends itself against the risk of being read 2-strlen.c Writes a function that returns the length of a string.
I do not fear computers. I fear the lack of them 3-puts.c Writes a function that prints a string, followed by a new line, to stdout.
I can only go one way. I've not got a reverse gear 4-print_rev.c Writes a function that prints a string, in reverse, followed by a new line.
A good engineer thinks in reverse and asks himself about the stylistic consequences of the components and systems he proposes 5-rev_string.c Writes a function that reverses a string.
Half the lies they tell about me aren't true 6-puts2.c Writes a function that prints every other character of a string, starting with the first character, followed by a new line.
Winning is only half of it. Having fun is the other half 7-puts_half.c Writes a function that prints half of a string, followed by a new line.
Arrays are not pointers 8-print_array.c Writes a function that prints n elements of an array of integers, followed by a new line.
strcpy 9-strcpy.c Writes a function that copies the string pointed to by src, including the terminating null byte (\0), to the buffer pointed to by dest.
Great leaders are willing to sacrifice the numbers to save the people. Poor leaders sacrifice the people to save the numbers 100-atoi.c Writes a function that converts a string to an integer.
Don't hate the hacker, hate the code 101-keygen.c Writes a program that generates random valid passwords for the program 101-crackme.