# string.h File Reference

`#include <ubixos/types.h>`

Include dependency graph for string.h:

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

Go to the source code of this file.

## Functions

int | memcmp (const void *dst, const void *src, size_t length)
void * | memcpy (const void *dst, const void *src, size_t length)
void * | memset (void *dst, int c, size_t length)
int | sprintf (char *buf, const char *fmt,...)
int | strcmp (const char *str1, const char *str2)
char * | strcpy (char *, const char *)
int | strlen (const char *string)
int | strncmp (const char *a, const char *b, size_t c)
void | strncpy (char *dest, const char *src, size_t size)
char * | strstr (const char *s, char *find)
char * | strtok (char *str, const char *sep)
char * | strtok_r (char *str, const char *sep, char **last)

## Function Documentation

int memcmp | ( | const void * | dst,
|  | const void * | src,
|  | size_t | length |
| ) |  |  |

Definition at line 80 of file string.c.

void* memcpy | ( | const void * | dst,
|  | const void * | src,
|  | size_t | length |
| ) |  |  |

Referenced by __sysctl(), addDirEntry(), apicMagic(), bcopy(), fork_copyProcess(), fsread(), initHardDisk(), lookup(), mpi_fetchMessage(), mpi_postMessage(), mpi_spam(), sys_write(), syscall(), sysctl_add(), tty_change(), and vfsRegisterFS().

void* memset | ( | void * | dst,
|  | int | c,
|  | size_t | length |
| ) |  |  |

Definition at line 37 of file memset.c.

Referenced by bzero(), elf_loadfile(), execFile(), getEmptyDesc(), idt_init(), kfree(), kmod_load(), ldEnable(), schedNewTask(), sys_exec(), sysExec(), vitals_init(), vmm_pagingInit(), and vmmCopyVirtualSpace().

int sprintf | ( | char * | buf,
|  | const char * | fmt,
|  |  | ... |
| ) |  |  |

Definition at line 51 of file kprintf.c.

Referenced by devfs_makeNode(), fopen(), initHardDisk(), mpi_createMbox(), sysChDir(), sysctl_add(), sysctl_init(), sysGetCwd(), sysMkDir(), ubixFSLoadDir(), ubixFSmkDir(), and vfs_mount().

int strcmp | ( | const char * | str1,
|  | const char * | str2 |
| ) |  |  |

Definition at line 32 of file string.c.

Referenced by devfs_open(), fsfind(), kmod_load(), ldEnable(), mpi_destroyMbox(), mpi_findMbox(), systemTask(), ubixfs_cacheFind(), ubixfs_findName(), ubixFSLoadDir(), ubixFSUnlink(), vfs_findMount(), and writeUbixFS().

char* strcpy | ( | char * | ,
|  | const char * |  |
| ) |  |  |

int strlen | ( | const char * | string | ) |

int strncmp | ( | const char * | a,
|  | const char * | b,
|  | size_t | c |
| ) |  |  |

Definition at line 48 of file string.c.

Referenced by strstr().

void strncpy | ( | char * | dest,
|  | const char * | src,
|  | size_t | size |
| ) |  |  |

Definition at line 105 of file string.c.

char* strstr | ( | const char * | s,
|  | char * | find |
| ) |  |  |

Definition at line 118 of file string.c.

References NULL, strlen, and strncmp().

Referenced by fopen(), sysChDir(), and sysMkDir().

Here is the call graph for this function:

char* strtok | ( | char * | str,
|  | const char * | sep |
| ) |  |  |

Definition at line 74 of file strtok.c.

References strtok_r().

Referenced by fopen(), sysMkDir(), and unlink().

Here is the call graph for this function:

char* strtok_r | ( | char * | str,
|  | const char * | sep,
|  | char ** | last |
| ) |  |  |

Definition at line 33 of file strtok.c.

References NULL.

Referenced by strtok().