Skip to content

Commit

Permalink
doc: Fix spelling mistakes
Browse files Browse the repository at this point in the history
Found with codespell.

Signed-off-by: Alexander Dahl <[email protected]>
  • Loading branch information
LeSpocky committed Jul 12, 2018
1 parent f4c7ede commit 6e53089
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Well, I am keeping this TODO list here for historical (and funny) reasons. Nowad
- Encrypted session
- Memory Management functions
- Code speed ups
- Other miscelaneous functions
- Other miscellaneous functions
- Win32 port? ( who wants it? )

Changelog
Expand Down
2 changes: 1 addition & 1 deletion examples/strings/b64.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

char *example_description()
{
char *desc = "LibCGI examples, str_base64_* functions demostration. <br>";
char *desc = "LibCGI examples, str_base64_* functions demonstration. <br>";

return desc;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/strings/htmlentities.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
char *example_description()
{
char *desc = ""
"LibCGI examples, htmltities() function demostration. <br>"
"LibCGI examples, htmltities() function demonstration. <br>"
"Type an html code into textarea and then click OK"
"";

Expand Down
2 changes: 1 addition & 1 deletion examples/strings/md5.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

char *example_description()
{
char *desc = "LibCGI examples, md5 function demostration. <br>";
char *desc = "LibCGI examples, md5 function demonstration. <br>";

return desc;
}
Expand Down
2 changes: 1 addition & 1 deletion src/base64.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
LibCGI base64 manipulation functions is extremly based on the work of Bob Tower,
LibCGI base64 manipulation functions is extremely based on the work of Bob Tower,
from its projec http://base64.sourceforge.net. The functions were a bit modicated.
Above is the MIT license from b64.c original code:
Expand Down
2 changes: 1 addition & 1 deletion src/cgi.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern "C" {
#endif


// general purpose linked list. Actualy isn't very portable
// general purpose linked list. Actually isn't very portable
// because uses only 'name' and 'value' variables to store data.
// Problably, in a future release, this will be replaced by
// another type of struct
Expand Down
4 changes: 2 additions & 2 deletions src/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void slist_add(formvars *item, formvars **start, formvars **last)
{
// if *start is empty, then our list is also empty. So, the only
// task to do is fill the variables *start and *last with the data pointed by item
// *start contains the firts item in the list, and we need *last to know the
// *start contains the first item in the list, and we need *last to know the
// end of the list
if (!*start) {
// item->next needs to be NULL, otherwise we never will
Expand All @@ -55,7 +55,7 @@ void slist_add(formvars *item, formvars **start, formvars **last)
// NULL, or in other words, it will be the end ;0
item->next = NULL;

// Finaly, the actual end of list will contain the new item
// Finally, the actual end of list will contain the new item
*last = item;
}

Expand Down
6 changes: 3 additions & 3 deletions src/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ char *str_nreplace(char *src, const char *delim, const char *with, int n)
/**
* Replace characteres in a string.
* Replace all occourences of *delim on *src with characteres pointed by *with.
* The problem with the folowing code is that the function only searches for the
* first caracter of *delim, ingoring the rest. Other problem is speed relacioned:
* The problem with the following code is that the function only searches for the
* first character of *delim, ingoring the rest. Other problem is speed relacioned:
* note that the function ever compare the length of *with to do the correct action.
* @param src String to parse
* @param delim Character to search that will be replaced
Expand Down Expand Up @@ -547,7 +547,7 @@ char *strdel(char *s, int start, int count)
/**
* Reads an entire line.
* Reads a line from the file specified by the file pointer passed
* as parameter. This function is intead to replace the non-portable
* as parameter. This function is instead to replace the non-portable
* GNU getline() function.
*
* @param s File pointer to the file to read from.
Expand Down

0 comments on commit 6e53089

Please sign in to comment.