Fix some spelling in src/base/system.h

termineted -> terminated
This commit is contained in:
heinrich5991 2014-02-28 23:16:11 +01:00
parent b9c4086382
commit fde797274a

View file

@ -727,7 +727,7 @@ int net_tcp_close(NETSOCKET 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.
- Garantees that dst string will contain zero-termination. - Garantees 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);
@ -742,7 +742,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.
- Garantees that dst string will contain zero-termination. - Garantees 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);
@ -771,7 +771,7 @@ int str_length(const char *str);
Remarks: Remarks:
- See the C manual for syntax for the printf formating string. - 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. - Garantees that dst string will contain zero-termination.
*/ */
void str_format(char *buffer, int buffer_size, const char *format, ...); 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. 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);
@ -796,7 +796,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);
@ -809,7 +809,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);
@ -821,7 +821,7 @@ void str_sanitize(char *str);
str - String to clean up str - String to clean up
Remarks: Remarks:
- The strings are treated as zero-termineted strings. - The strings are treated as zero-terminated strings.
*/ */
void str_clean_whitespaces(char *str); void str_clean_whitespaces(char *str);
@ -837,7 +837,7 @@ void str_clean_whitespaces(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);
@ -853,7 +853,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);
@ -872,7 +872,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);
@ -892,7 +892,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);
@ -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 >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);
@ -929,7 +929,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);
@ -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 >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);
@ -965,7 +965,7 @@ int str_comp_filenames(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.
*/ */
const char *str_find_nocase(const char *haystack, const char *needle); 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. 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);
@ -1100,7 +1100,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);