Skip to content

Latest commit

 

History

History

0x06-pointers_arrays_strings

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

0x06. C - Even more pointers, arrays and strings

About

An introductory project on:

  • pointers to pointers and how to use them
  • multidimensional arrays and how to use them

Requirements

  • Ubuntu 14.04
  • gcc 4.8.4
  • no standard library functions
  • allowed to use _putchar

File Descriptions

Mandatory

0-memset.c - function that fills memory with a constant byte.

1-memcpy.c - function that copies memory area.

2-strchr.c - function that locates a character in a string.

3-strspn.c - function that gets the length of a prefix substring.

4-strpbrk.c - function that searches a string for any of a set of bytes.

5-strstr.c - function that locates a substring.

7-print_chessboard.c - function that prints a chessboard.

8-print_diagsums.c - function that prints the sum of the two diagonals of a square matrix of integers. Allowed to use the standard library.

9-set_string.c - function that sets the value of a pointer to a char.

Advanced

101-crackme_password - file that contains the password for the crackme2 executable.