Skip to content

anaiel/PiscineReloaded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiscineReloaded

Piscine Reloaded is a series of simple shell and C exercises taken from the Piscine, the 1-month coding marathon that serves as a selection process for 42. The aim of the exercises is to give the student a basic understanding of the architecture of C code, of strings, pointers, memory, iterative and recursive function, and other basic concepts.

Complete instructions can be found in the resources folder.

I finished these exercises in November 2018.

Piscine Reloaded

Basics of C

List of exercises

# Description
00 Create files and folder and edit their authorizations and date
01 Display 'Z'
02 Write a script that will display and erase all file ending in ~ or starting and ending with #
03 Write a script that will find all files ending in .sh in the current directory and its sub directories
04 Write a script that displays the machine's MAC addresses
05 Create a file that only contains 42 and named "?$’KwaMe’$?"
06 Display the alphabet
07 Display all digits
08 Display N or P depending on the integer's sign
09 Write a function that sets an int, passed as a paramater as a pointer, to 42
10 Write a function that swaps the value of two integers whose addresses are entered as parameters
11 Write a function that divides the first parameters by the second parameter and stores the result in the int pointed by the third parameter and the remainder of the division of in the int pointed by the fourth parameter
12 Write a function that returns the factorial of an int, using an iterative process
13 Write a function that returns the factorial of an int, using a recursive process
14 Write a funciton that returns the square root of an int if it is an integer
15 Print a string on the standard output
16 Return the length of the string
17 Compare two strings
18 Print the parameters given to the executable
19 Print the parameters given to the executable in ASCII order
20 Return a duplicate of the given string
21 Return an array of int included between the given max and min values
22 Return the absolute value of an int
23 Create the header file that will allow to compile the given file (which uses a struct)
24 Create a Makefile
25 Write a function that applies the functin given as a parameter to a list
26 Write a function that returns the number of elements in a list for which the function passed as a parameter returns 1
27 Display a file

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published