Definition in file bstring.c.
#include "../include/beeos.h"
#include "../include/bstring.h"
Include dependency graph for bstring.c:
Go to the source code of this file.
Functions | |
ushort | bstrlen (char *pString) |
POSIX strlen() look-alike. Returns length of a NULL-term'd string. | |
ushort | bstrncpy (char *pDst, char *pSrc, ushort maxn) |
POSIX strncpy() look-alike. Copies between two strings. | |
void | bmemset (char *pDst, char pattern, ushort len) |
POSIX memset() look-alike. Initialises memory. | |
void | bmemcpy (char *pDst, char *pSrc, ushort len) |
POSIX memcpy() look-alike. Copies from one address to another. |
|
POSIX
Definition at line 84 of file bstring.c. References ushort. Referenced by bremalloc(), bubblesort(), context_restore2(), and context_save2().
00085 { 00086 while (len-- > 0) { 00087 *pDst++ = *pSrc++; 00088 } 00089 00090 return; 00091 } |
|
POSIX
Definition at line 69 of file bstring.c. References ushort. Referenced by bmallocinit(), bremalloc(), btnscan_chk(), and execprep().
00070 { 00071 while (len-- > 0) { 00072 *pDst++ = pattern; 00073 }; 00074 00075 return; 00076 } |
|
POSIX
Definition at line 35 of file bstring.c. References ushort.
00036 { 00037 ushort i = 0; 00038 00039 while (*pString++ != '\0') i++; 00040 00041 return i; 00042 } |
|
POSIX
Definition at line 51 of file bstring.c. References ushort. Referenced by bvsnprintf().
00052 { 00055 ushort i = 0; 00056 00057 while ((*pSrc != '\0') && (i++ < maxn)) *pDst++ = *pSrc++; 00058 *pDst = '\0'; 00059 00060 return i; 00061 } |