42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_strcmp.c File Reference

The file containing the my_strcmp function. More...

#include "my.h"

Functions

int my_strcmp (char const *s1, char const *s2)
 Compares two strings (s1) and (s2)
 

Detailed Description

The file containing the my_strcmp function.

Author
Nicolas TORO

Function Documentation

◆ my_strcmp()

int my_strcmp ( char const * s1,
char const * s2 )

Compares two strings (s1) and (s2)

Parameters
s1The first string to compare
s2The second string to compare
Returns
int 0 if the strings are identical, otherwise the difference between the first different characters in the strings
Author
Nicolas TORO