SkillAgentSearch skills...

Ftprintfdestructor

A script that destroys the school 42 project ft_printf

Install / Use

/learn @t0mm4rx/Ftprintfdestructor
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ftprintfdestructor

This project is a script that generate thousands of tests for the school 42 project ft_printf.

It doesn't test %p flag.

By tmarx

Usage

git clone https://github.com/t0mm4rx/ftprintfdestructor
cd ftprintfdestructor
sh run.sh <path-of-ftprintf>

If you want to increase the number of tests, edit run.py, at the top of the file there are two constants, M and N. N is the number of tests in each main generated. M is the number of main generated.

How it works

This script generate hundreds of random test, then create two mains. One calling these tests with printf and the other with ft_printf. Then, it compares line by line and print the tests that failed.

The value between -- X -- is the return value of the function.

Related Skills

View on GitHub
GitHub Stars21
CategoryDevelopment
Updated2y ago
Forks1

Languages

Python

Security Score

65/100

Audited on Nov 19, 2023

No findings