Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
str.h File Reference
#include <string.h>
#include <type.h>
#include <vector.h>

Go to the source code of this file.

Typedefs

typedef const char * __str
 

Functions

void memcopy (void *dest, void *src, size_t size)
 
void * memmove (void *dest, const void *src, size_t n)
 
void memset (void *ptr, int value, size_t num)
 
int memcmp (const void *s1, const void *s2, size_t n)
 
void to_lowercase (char *str)
 
size_t strlen (const char *s)
 
int strncmp (const char *s1, const char *s2, size_t n)
 
int strcmp (const char *s1, const char *s2)
 
void strcpy (char *dest, const char *src)
 
char * strncpy (char *dest, const char *src, size_t n)
 
void strcat (char *dest, const char *src)
 
char * strpbrk (const char *s, const char *accept)
 
char * strsep2 (char **stringp, const char *delim)
 
const char * strsep (char **stringp, const char delim)
 
char * strchr (const char *s, int c)
 
size_t strspn (const char *s, const char *accept)
 
size_t strcspn (const char *s, const char *reject)
 
char * strtok_r (char *str, const char *delim, char **saveptr)
 
char * rtrim (char *str)
 
char * itoa (int64_t value, int base)
 
void * memchr (const void *buf, int c, size_t len)
 

Typedef Documentation

◆ __str

typedef const char* __str

Definition at line 31 of file str.h.

Function Documentation

◆ itoa()

char * itoa ( int64_t value,
int base )

Definition at line 302 of file str.c.

References base, str(), and value.

Referenced by configure_tty(), and create_process().

◆ memchr()

void * memchr ( const void * buf,
int c,
size_t len )

References len.

◆ memcmp()

int memcmp ( const void * s1,
const void * s2,
size_t n )

References str().

Referenced by iso9660_lookup().

◆ memcopy()

◆ memmove()

void * memmove ( void * dest,
const void * src,
size_t n )

Definition at line 287 of file str.c.

◆ memset()

◆ rtrim()

char * rtrim ( char * str)

Definition at line 74 of file str.c.

References str(), and strlen().

◆ strcat()

void strcat ( char * dest,
const char * src )

References str().

◆ strchr()

char * strchr ( const char * s,
int c )

Definition at line 113 of file str.c.

Referenced by strcspn().

◆ strcmp()

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

Referenced by cache_lookup().

◆ strcpy()

void strcpy ( char * dest,
const char * src )

◆ strcspn()

size_t strcspn ( const char * s,
const char * reject )

Definition at line 137 of file str.c.

References count, and strchr().

Referenced by strtok_r().

◆ strlen()

◆ strncmp()

◆ strncpy()

char * strncpy ( char * dest,
const char * src,
size_t n )

◆ strpbrk()

char * strpbrk ( const char * s,
const char * accept )

Definition at line 208 of file str.c.

References NULL.

Referenced by strsep2().

◆ strsep()

const char * strsep ( char ** stringp,
const char delim )

Definition at line 249 of file str.c.

References str().

◆ strsep2()

char * strsep2 ( char ** stringp,
const char * delim )

Definition at line 228 of file str.c.

References NULL, and strpbrk().

◆ strspn()

size_t strspn ( const char * s,
const char * accept )

Definition at line 121 of file str.c.

References count.

Referenced by strtok_r().

◆ strtok_r()

char * strtok_r ( char * str,
const char * delim,
char ** saveptr )

Definition at line 147 of file str.c.

References NULL, str(), strcspn(), and strspn().

◆ to_lowercase()

void to_lowercase ( char * str)

Definition at line 64 of file str.c.

References str().

Referenced by iso9660_lookup().