Advertisement
2607

Untitled

Nov 24th, 2021
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.72 KB | None | 0 0
  1. #ifndef S21_STRING_H
  2. #define S21_STRING_H
  3. typedef unsigned s21_size_t;
  4.  
  5. s21_size_t s21_strlen(const char *str);
  6. int s21_strcmp(const char *str1, const char *str2);
  7. int s21_strncmp(const char *str1, const char *str2, s21_size_t n);
  8. char *s21_strcpy(char *dest, const char *src);
  9. char *s21_strncpy(char *dest, const char *src, int n);
  10. int s21_sprintf(char *output, char *str, ...);
  11. // целое число в строку
  12. char* IntStr(char *buf,int is_int, long int n, char flag, char flag3, int width, int prec);
  13. // вещественное число в строку
  14. char* DoubleStr(char *buf, long double n, char flag, char flag3, int width, int prec);
  15. //длина целого числа
  16. int LenInt(int n);
  17.  
  18. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement