functions that do string manipulation
More...
Go to the source code of this file.
|
struct | _split |
| contains a splitted string and the number or splitted fields More...
|
|
|
typedef struct _split | Split |
| contains a splitted string and the number or splitted fields
|
|
|
int | str_isascii (char *s) |
| return nonzero iff all elements in the string are in the ASCII set.
|
|
int | strindex (char *s, char *t) |
| returns index of t in s (start, first occurence) More...
|
|
int | count_char (char *s, char c) |
| returns the # of occurences of char c in string s
|
|
Split | strsplit (char *str, char sep) |
| Separates strings by a separator. More...
|
|
functions that do string manipulation
- Author
- Paula Perez paula.nosp@m.pere.nosp@m.zrubi.nosp@m.o@gm.nosp@m.ail.c.nosp@m.om
- Date
- 03.08.2017
◆ strindex()
int strindex |
( |
char * |
s, |
|
|
char * |
t |
|
) |
| |
returns index of t in s (start, first occurence)
- Parameters
-
s | string to be checked. |
t | substring to be found in s. |
◆ strsplit()
Split strsplit |
( |
char * |
str, |
|
|
char |
sep |
|
) |
| |
Separates strings by a separator.
- Parameters
-
str | input string |
sep | separator (char) |
- Returns
- array of strings containing the substrings in the input separated