libft
Functions
ft_strlast.c File Reference
#include "libft.h"
+ Include dependency graph for ft_strlast.c:

Go to the source code of this file.

Functions

char ft_strlast (char const *str)
 Returns the last characters (other than NULL-termination) of a string. More...
 

Function Documentation

◆ ft_strlast()

char ft_strlast ( char const *  str)

Returns the last characters (other than NULL-termination) of a string.

Parameters
strThe string.
Returns
The last character of the string, or 0 if it is empty.

Definition at line 22 of file ft_strlast.c.