delete_left_char()
#
Removes all leading occurrences of the specified character x
from the string s
.
Prototype
char *delete_left_char(
char *s,
char x
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The input string to modify in place. |
|
|
The character to remove from the beginning of |
Return Value
A pointer to the modified string s
.
Notes
The function modifies the input string in place by shifting characters to the left.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples