FastqPuri
Classes | Typedefs | Functions
str_manip.h File Reference

functions that do string manipulation More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _split
 contains a splitted string and the number or splitted fields More...
 

Typedefs

typedef struct _split Split
 contains a splitted string and the number or splitted fields
 

Functions

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...
 

Detailed Description

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

Function Documentation

◆ strindex()

int strindex ( char *  s,
char *  t 
)

returns index of t in s (start, first occurence)

Parameters
sstring to be checked.
tsubstring to be found in s.

◆ strsplit()

Split strsplit ( char *  str,
char  sep 
)

Separates strings by a separator.

Parameters
strinput string
sepseparator (char)
Returns
array of strings containing the substrings in the input separated