Dakha

main.h

Jul 23rd, 2023
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1. #ifndef _MAIN_H_
  2. #define _MAIN_H_
  3.  
  4. #include <stdarg.h>
  5. #include <stdio.h>
  6. #include <unistd.h>
  7. #include <limits.h>
  8. #include <stdlib.h>
  9.  
  10. #define NULL_STRING "(null)"
  11.  
  12. typedef struct specifier
  13. {
  14.     char *specifier;
  15.     int (*f)(va_list);
  16. } specifier_t;
  17.  
  18. /* _prinf.c */
  19. int _printf(const char *format, ...);
  20.  
  21. /* _putchar.c */
  22. int _puts(char *str);
  23. int _putchar(int c);
  24.  
  25. /* specifiers.c */
  26. int (*get_specifier(char *s))(va_list ap);
  27. int get_print_func(char *s, va_list ap);
  28.  
  29. /* printer.c */
  30. int print_from_to(char *start, char *stop, char *except);
  31.  
  32.  
  33. /* specifiers_functions.c */
  34. int print_character(va_list ap);
  35. int print_string(va_list ap);
  36. int print_percent(va_list ap);
  37.  
  38. #endif /* end of _MAIN_H_*/
  39.  
Advertisement
Add Comment
Please, Sign In to add comment