You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include"main.h"/** * _itob - convert integer to the specified base and stores the result * as a string * * @number: the number to convert * @buffer: the string buffer to store the result * @base: the base to convert @number to */void_itob(ssize_tnumber, char*buffer, intbase);
Your function should handle bases 2, 8, 10, and 16. The main.h has macros for these tokens, use them.
Example: BIN is assigned to 2, HEX to 16
The text was updated successfully, but these errors were encountered:
Here's the prototype to use
Your function should handle bases 2, 8, 10, and 16. The
main.h
has macros for these tokens, use them.Example:
BIN
is assigned to 2,HEX
to 16The text was updated successfully, but these errors were encountered: