![]() |
Xyris
0.5
|
#include <stddef.h>#include <stdint.h>
Include dependency graph for string.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| int | strlen (const char *s) |
| void | strcpy (char *destination, const char *source) |
| void | strncpy (char *destination, const char *source, size_t len) |
| char * | strcat (char *dest, const char *src) |
| int | strcmp (const char *s1, const char *s2) |
| const char * | strstr (const char *haystack, const char *needle) |
| void | reverse (char *s) |
| void | itoa (int n, char str[]) |
| void * | memset (void *bufptr, int value, size_t num) |
| int | memcmp (const void *ptr1, const void *ptr2, size_t num) |
| void * | memmove (void *destination, const void *source, size_t size) |
| void * | memcpy (void *dstptr, const void *srcptr, size_t size) |
Standard string and memory utility library.
Definition in file string.hpp.
| void itoa | ( | int | n, |
| char | str[] | ||
| ) |
Converts an integer into its ASCII representation. (This does not have a standard, ANSI implementation.)
| n | Number to be converted to ASCII |
| str | Buffer to hold result |
Definition at line 89 of file string.cpp.
Here is the call graph for this function:| int memcmp | ( | const void * | ptr1, |
| const void * | ptr2, | ||
| size_t | num | ||
| ) |
Compares a given number of bytes in memory at pointer A to pointer B.
| ptr1 | Source pointer |
| ptr2 | Destination pointer |
| num | Number of bytes |
Definition at line 114 of file string.cpp.
| void* memcpy | ( | void * | dstptr, |
| const void * | srcptr, | ||
| size_t | size | ||
| ) |
| dstptr | |
| srcptr | |
| size |
Definition at line 141 of file string.cpp.
Here is the caller graph for this function:| void* memmove | ( | void * | destination, |
| const void * | source, | ||
| size_t | size | ||
| ) |
Moves a given number of bytes from the source to the destination.
| destination | Destination pointer |
| source | Source pointer |
| size | Number of bytes |
Definition at line 127 of file string.cpp.
| void* memset | ( | void * | bufptr, |
| int | value, | ||
| size_t | num | ||
| ) |
Sets the number of bytes in memory at ptr to the value.
| bufptr | Pointer to location in memory |
| value | Value to be written in memory |
| num | Number of bytes |
Definition at line 106 of file string.cpp.
Here is the caller graph for this function:| void reverse | ( | char * | s | ) |
Reverses the inputted string.
| s | String to be reversed |
Definition at line 78 of file string.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| char* strcat | ( | char * | dest, |
| const char * | src | ||
| ) |
Concatanates source onto destination.
| dest | Destination |
| src | Source |
Definition at line 23 of file string.cpp.
Here is the call graph for this function:| int strcmp | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
Compares two strings.
| s1 | String one |
| s2 | String two |
Definition at line 51 of file string.cpp.
Here is the caller graph for this function:| void strcpy | ( | char * | destination, |
| const char * | source | ||
| ) |
Copys a string from the source to the destination.
| source | String to be copied |
| destination | Location where string will be copied |
Definition at line 31 of file string.cpp.
| int strlen | ( | const char * | s | ) |
Returns the length of a string.
| s | Input string |
Definition at line 14 of file string.cpp.
Here is the caller graph for this function:| void strncpy | ( | char * | destination, |
| const char * | source, | ||
| size_t | len | ||
| ) |
Copys a string from the source to the destination.
| source | String to be copied |
| destination | Location where string will be copied |
| len | Maximum string length |
Definition at line 41 of file string.cpp.
| const char* strstr | ( | const char * | haystack, |
| const char * | needle | ||
| ) |
Locates a substring (needle) within a containing string (haystack)
| haystack | String to be searched |
| needle | Substring to be located |
Definition at line 65 of file string.cpp.
Here is the call graph for this function:
Here is the caller graph for this function: