![]() |
tgrekov-ft_printf
HIVE printf Feb 2024
|
Definition in file ft_strncmp.c.
#include "libft.h"Go to the source code of this file.
Functions | |
| int | ft_strncmp (const char *s1, const char *s2, size_t n) |
Compare up to n characters of string s1 with string s2. | |
| int ft_strncmp | ( | const char * | s1, |
| const char * | s2, | ||
| size_t | n | ||
| ) |
Compare up to n characters of string s1 with string s2.
| [in] | s1 | Optionally null-terminated string |
| [in] | s2 | Optionally null-terminated string |
| [in] | n | Maximum number of characters to compare |
| int | Result of subtracting the differing character of s2 from that of s1. If no difference was found in n characters, or before the strings were terminated, returns 0. |
Definition at line 33 of file ft_strncmp.c.