Skip to content

theo-mazars/minif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mini Printf

This function is a printf like in one file according to the EPITECH's coding style

Epitech Coding Style

2023

Prototype

size_t minif(const char * const str, ...);

minif(str, ...);

Example

#include "minif.h"

int main(void)
{
    /* The function will return 20 as a size_t value */
    minif("Here is an int : %d\n", 42);
    return (0);
}

Flags

  • %c print char type vars
  • %i print int type vars and smaller values
  • %d print int type vars and smaller values
  • %u print unsigned int type vars and smaller values
  • %s print char * type vars (print "(nul)" if pointer is NULL)
  • %% print % char

Max Values

Type Min value Max value
char -128 127
unsigned char 0 256
int -2147483648 2147483647
unsigned int 0 4294967295
long long -9223372036854775808 9223372036854775807
unsigned long long 0 18446744073709551615

Authors

You can also star this repo to support my work

About

Basic printf function in a file according to the epitech 2023 coding style

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages