Skip to content

This repository contains my exercises and projects from the 42 Piscine.

Notifications You must be signed in to change notification settings

kiprenko/42-urduliz-c-piscine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 Piscine Repository

Українська | Español

This repository contains my exercises and projects from the 42 Piscine.

Table of Contents

About

The 42 Piscine is an intensive, month-long coding bootcamp that covers the basics of programming in C, shell scripting, and Unix systems. It helps prepare students for the full 42 cursus.

Norminette

The Norminette is the tool used at 42 to check the conformity of your C code to the 42 coding style. Before submitting any project, your code should pass the Norminette without any errors.

Usage

You can run Norminette on a file or an entire directory:

norminette <file.c>
norminette <directory>

The tool checks:

  • Line length (maximum of 80 characters)
  • Function length (maximum of 25 lines)
  • File length (maximum of 5 functions)
  • Naming conventions for variables, functions, and files
  • Proper indentation and code structure

Compiling C Files

At 42 Piscine, all C files must be compiled with specific flags to ensure error-free code and proper handling of warnings. The following command should be used:

cc -Wall -Wextra -Werror <file.c> -o <output>

Generating Standard Headers

To generate the standard header in vim, use the Stdheader command, which creates a header with the required format for 42 projects.

Steps to Generate Header:

  1. Open the file in vim.
  2. Press Esc to enter command mode.
  3. Type :Stdheader and press Enter.

Author 🦝

About

This repository contains my exercises and projects from the 42 Piscine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published