Corewar documentation 1.0.0
Loading...
Searching...
No Matches
my_convert_base.c File Reference

The file containing the my_convert_base function. More...

#include "my.h"

Functions

char * my_convert_base (char const *nbr, char const *base_from, char const *base_to)
 Returns the result of the conversion of a number (nbr) in a specific base (base_from) to another base (base_to)
 

Detailed Description

The file containing the my_convert_base function.

Author
Nicolas TORO

Function Documentation

◆ my_convert_base()

char * my_convert_base ( char const * nbr,
char const * base_from,
char const * base_to )

Returns the result of the conversion of a number (nbr) in a specific base (base_from) to another base (base_to)

Parameters
nbrThe number to convert
base_fromThe base of the number
base_toThe base to convert the number
Returns
char* The converted number in the new base
Author
Nicolas TORO