Skip to content

Instantly share code, notes, and snippets.

View PypeBros's full-sized avatar

PypeBros

View GitHub Profile
@PypeBros
PypeBros / test-fgets.c
Created February 27, 2020 13:44
why ? don't you trust fgets(3) manpage ?
#include <stdio.h>
#include <string.h>
int showChar(char c) {
switch (c) {
case '!'...'~':
fprintf(stderr, "'%c ", c);
break;
case 0:
fprintf(stderr, "\\0 ");
@PypeBros
PypeBros / Equationduseconddegre.cpp
Last active February 15, 2018 15:28
Ceci est un programme permettant de calculer les équations du second degré
/**************************************************\
* Programme réalisant des calculs du second degré. *
* Réaliser par: Thomas Bastin *
* Le 31/01/2018 *
\**************************************************/
#include <iostream>
#include <math.h>
#include <string>
#include <cctype>