mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Fix some spelling in src/base/system.h
termineted -> terminated
This commit is contained in:
parent
b9c4086382
commit
fde797274a
|
@ -727,7 +727,7 @@ int net_tcp_close(NETSOCKET sock);
|
|||
dst_size - Size of the buffer of the dst string.
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
- Garantees that dst string will contain zero-termination.
|
||||
*/
|
||||
void str_append(char *dst, const char *src, int dst_size);
|
||||
|
@ -742,7 +742,7 @@ void str_append(char *dst, const char *src, int dst_size);
|
|||
dst_size - Size of the buffer dst.
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
- Garantees that dst string will contain zero-termination.
|
||||
*/
|
||||
void str_copy(char *dst, const char *src, int dst_size);
|
||||
|
@ -771,7 +771,7 @@ int str_length(const char *str);
|
|||
|
||||
Remarks:
|
||||
- See the C manual for syntax for the printf formating string.
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
- Garantees that dst string will contain zero-termination.
|
||||
*/
|
||||
void str_format(char *buffer, int buffer_size, const char *format, ...);
|
||||
|
@ -784,7 +784,7 @@ void str_format(char *buffer, int buffer_size, const char *format, ...);
|
|||
str - String to sanitize.
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
void str_sanitize_strong(char *str);
|
||||
|
||||
|
@ -796,7 +796,7 @@ void str_sanitize_strong(char *str);
|
|||
str - String to sanitize.
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
void str_sanitize_cc(char *str);
|
||||
|
||||
|
@ -809,7 +809,7 @@ void str_sanitize_cc(char *str);
|
|||
str - String to sanitize.
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
void str_sanitize(char *str);
|
||||
|
||||
|
@ -821,7 +821,7 @@ void str_sanitize(char *str);
|
|||
str - String to clean up
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
void str_clean_whitespaces(char *str);
|
||||
|
||||
|
@ -837,7 +837,7 @@ void str_clean_whitespaces(char *str);
|
|||
within the string.
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
char *str_skip_to_whitespace(char *str);
|
||||
|
||||
|
@ -853,7 +853,7 @@ char *str_skip_to_whitespace(char *str);
|
|||
within the string.
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
char *str_skip_whitespaces(char *str);
|
||||
|
||||
|
@ -872,7 +872,7 @@ char *str_skip_whitespaces(char *str);
|
|||
|
||||
Remarks:
|
||||
- Only garanted to work with a-z/A-Z.
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
int str_comp_nocase(const char *a, const char *b);
|
||||
|
||||
|
@ -892,7 +892,7 @@ int str_comp_nocase(const char *a, const char *b);
|
|||
|
||||
Remarks:
|
||||
- Only garanted to work with a-z/A-Z.
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
int str_comp_nocase_num(const char *a, const char *b, const int num);
|
||||
|
||||
|
@ -910,7 +910,7 @@ int str_comp_nocase_num(const char *a, const char *b, const int num);
|
|||
>0 - String a is greater then string b
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
int str_comp(const char *a, const char *b);
|
||||
|
||||
|
@ -929,7 +929,7 @@ int str_comp(const char *a, const char *b);
|
|||
>0 - String a is greater then string b
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
int str_comp_num(const char *a, const char *b, const int num);
|
||||
|
||||
|
@ -947,7 +947,7 @@ int str_comp_num(const char *a, const char *b, const int num);
|
|||
>0 - String a is greater then string b
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
int str_comp_filenames(const char *a, const char *b);
|
||||
|
||||
|
@ -965,7 +965,7 @@ int str_comp_filenames(const char *a, const char *b);
|
|||
|
||||
Remarks:
|
||||
- Only garanted to work with a-z/A-Z.
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
const char *str_find_nocase(const char *haystack, const char *needle);
|
||||
|
||||
|
@ -982,7 +982,7 @@ const char *str_find_nocase(const char *haystack, const char *needle);
|
|||
Returns NULL of needle could not be found.
|
||||
|
||||
Remarks:
|
||||
- The strings are treated as zero-termineted strings.
|
||||
- The strings are treated as zero-terminated strings.
|
||||
*/
|
||||
const char *str_find(const char *haystack, const char *needle);
|
||||
|
||||
|
@ -1100,7 +1100,7 @@ char *fs_getcwd(char *buffer, int buffer_size);
|
|||
Returns 0 on success, 1 on failure.
|
||||
|
||||
Remarks:
|
||||
- The string is treated as zero-termineted string.
|
||||
- The string is treated as zero-terminated string.
|
||||
*/
|
||||
int fs_parent_dir(char *path);
|
||||
|
||||
|
|
Loading…
Reference in a new issue