mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
"termineted" -> "terminated"
This commit is contained in:
parent
bfbeba54f5
commit
57d3a61c3f
|
@ -943,7 +943,7 @@ void net_unix_close(UNIXSOCKET sock);
|
||||||
dst_size - Size of the buffer of the dst string.
|
dst_size - Size of the buffer of the dst string.
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
- Guarantees that dst string will contain zero-termination.
|
- Guarantees that dst string will contain zero-termination.
|
||||||
*/
|
*/
|
||||||
void str_append(char *dst, const char *src, int dst_size);
|
void str_append(char *dst, const char *src, int dst_size);
|
||||||
|
@ -958,7 +958,7 @@ void str_append(char *dst, const char *src, int dst_size);
|
||||||
dst_size - Size of the buffer dst.
|
dst_size - Size of the buffer dst.
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
- Guarantees that dst string will contain zero-termination.
|
- Guarantees that dst string will contain zero-termination.
|
||||||
*/
|
*/
|
||||||
void str_copy(char *dst, const char *src, int dst_size);
|
void str_copy(char *dst, const char *src, int dst_size);
|
||||||
|
@ -990,7 +990,7 @@ int str_length(const char *str);
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- See the C manual for syntax for the printf formatting string.
|
- See the C manual for syntax for the printf formatting string.
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
- Guarantees that dst string will contain zero-termination.
|
- Guarantees that dst string will contain zero-termination.
|
||||||
*/
|
*/
|
||||||
int str_format(char *buffer, int buffer_size, const char *format, ...)
|
int str_format(char *buffer, int buffer_size, const char *format, ...)
|
||||||
|
@ -1008,7 +1008,7 @@ GNUC_ATTRIBUTE((format(printf, 3, 4)));
|
||||||
Trimmed string
|
Trimmed string
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
*/
|
*/
|
||||||
char *str_trim_words(char *str, int words);
|
char *str_trim_words(char *str, int words);
|
||||||
|
|
||||||
|
@ -1020,7 +1020,7 @@ char *str_trim_words(char *str, int words);
|
||||||
str - String to sanitize.
|
str - String to sanitize.
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
*/
|
*/
|
||||||
void str_sanitize_strong(char *str);
|
void str_sanitize_strong(char *str);
|
||||||
|
|
||||||
|
@ -1032,7 +1032,7 @@ void str_sanitize_strong(char *str);
|
||||||
str - String to sanitize.
|
str - String to sanitize.
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
*/
|
*/
|
||||||
void str_sanitize_cc(char *str);
|
void str_sanitize_cc(char *str);
|
||||||
|
|
||||||
|
@ -1045,7 +1045,7 @@ void str_sanitize_cc(char *str);
|
||||||
str - String to sanitize.
|
str - String to sanitize.
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
*/
|
*/
|
||||||
void str_sanitize(char *str);
|
void str_sanitize(char *str);
|
||||||
|
|
||||||
|
@ -1057,7 +1057,7 @@ void str_sanitize(char *str);
|
||||||
str - String to sanitize.
|
str - String to sanitize.
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
*/
|
*/
|
||||||
void str_sanitize_filename(char *str);
|
void str_sanitize_filename(char *str);
|
||||||
|
|
||||||
|
@ -1073,7 +1073,7 @@ void str_sanitize_filename(char *str);
|
||||||
within the string.
|
within the string.
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
*/
|
*/
|
||||||
char *str_skip_to_whitespace(char *str);
|
char *str_skip_to_whitespace(char *str);
|
||||||
|
|
||||||
|
@ -1089,7 +1089,7 @@ char *str_skip_to_whitespace(char *str);
|
||||||
within the string.
|
within the string.
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The strings are treated as zero-termineted strings.
|
- The strings are treated as zero-terminated strings.
|
||||||
*/
|
*/
|
||||||
char *str_skip_whitespaces(char *str);
|
char *str_skip_whitespaces(char *str);
|
||||||
|
|
||||||
|
@ -1108,7 +1108,7 @@ char *str_skip_whitespaces(char *str);
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- Only garanted to work with a-z/A-Z.
|
- 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);
|
int str_comp_nocase(const char *a, const char *b);
|
||||||
|
|
||||||
|
@ -1128,7 +1128,7 @@ int str_comp_nocase(const char *a, const char *b);
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- Only garanted to work with a-z/A-Z.
|
- 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);
|
int str_comp_nocase_num(const char *a, const char *b, const int num);
|
||||||
|
|
||||||
|
@ -1146,7 +1146,7 @@ int str_comp_nocase_num(const char *a, const char *b, const int num);
|
||||||
>0 - String a is greater then string b
|
>0 - String a is greater then string b
|
||||||
|
|
||||||
Remarks:
|
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);
|
int str_comp(const char *a, const char *b);
|
||||||
|
|
||||||
|
@ -1165,7 +1165,7 @@ int str_comp(const char *a, const char *b);
|
||||||
>0 - String a is greater then string b
|
>0 - String a is greater then string b
|
||||||
|
|
||||||
Remarks:
|
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);
|
int str_comp_num(const char *a, const char *b, const int num);
|
||||||
|
|
||||||
|
@ -1183,7 +1183,7 @@ int str_comp_num(const char *a, const char *b, const int num);
|
||||||
>0 - String a is greater then string b
|
>0 - String a is greater then string b
|
||||||
|
|
||||||
Remarks:
|
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);
|
int str_comp_filenames(const char *a, const char *b);
|
||||||
|
|
||||||
|
@ -1259,7 +1259,7 @@ int str_utf32_dist_buffer(const int *a, int a_len, const int *b, int b_len, int
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- Only garanted to work with a-z/A-Z.
|
- 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);
|
const char *str_find_nocase(const char *haystack, const char *needle);
|
||||||
|
|
||||||
|
@ -1276,7 +1276,7 @@ const char *str_find_nocase(const char *haystack, const char *needle);
|
||||||
Returns NULL of needle could not be found.
|
Returns NULL of needle could not be found.
|
||||||
|
|
||||||
Remarks:
|
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);
|
const char *str_find(const char *haystack, const char *needle);
|
||||||
|
|
||||||
|
@ -1451,7 +1451,7 @@ char *fs_getcwd(char *buffer, int buffer_size);
|
||||||
Returns 0 on success, 1 on failure.
|
Returns 0 on success, 1 on failure.
|
||||||
|
|
||||||
Remarks:
|
Remarks:
|
||||||
- The string is treated as zero-termineted string.
|
- The string is treated as zero-terminated string.
|
||||||
*/
|
*/
|
||||||
int fs_parent_dir(char *path);
|
int fs_parent_dir(char *path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue