projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Synced with stable branch:
[privoxy.git]
/
src
/
miscutil.c
diff --git
a/src/miscutil.c
b/src/miscutil.c
index
53b3b4d
..
cdf8835
100644
(file)
--- a/
src/miscutil.c
+++ b/
src/miscutil.c
@@
-1,7
+1,7
@@
-const char miscutil_rcs[] = "$Id: miscutil.c,v
1.37 2002/04/26 18:29:43
jongfoster Exp $";
+const char miscutil_rcs[] = "$Id: miscutil.c,v
2.1 2002/06/04 17:22:37
jongfoster Exp $";
/*********************************************************************
*
/*********************************************************************
*
- * File : $Source: /cvsroot/ijbswa/current/miscutil.c,v $
+ * File : $Source: /cvsroot/ijbswa/current/
src/
miscutil.c,v $
*
* Purpose : zalloc, hash_string, safe_strerror, strcmpic,
* strncmpic, chomp, and MinGW32 strdup
*
* Purpose : zalloc, hash_string, safe_strerror, strcmpic,
* strncmpic, chomp, and MinGW32 strdup
@@
-36,6
+36,12
@@
const char miscutil_rcs[] = "$Id: miscutil.c,v 1.37 2002/04/26 18:29:43 jongfost
*
* Revisions :
* $Log: miscutil.c,v $
*
* Revisions :
* $Log: miscutil.c,v $
+ * Revision 2.1 2002/06/04 17:22:37 jongfoster
+ * Adding comments
+ *
+ * Revision 2.0 2002/06/04 14:34:21 jongfoster
+ * Moving source files to src/
+ *
* Revision 1.37 2002/04/26 18:29:43 jongfoster
* Fixing this Visual C++ warning:
* miscutil.c(710) : warning C4090: '=' : different 'const' qualifiers
* Revision 1.37 2002/04/26 18:29:43 jongfoster
* Fixing this Visual C++ warning:
* miscutil.c(710) : warning C4090: '=' : different 'const' qualifiers
@@
-296,7
+302,7
@@
void write_pid_file(void)
* to "switch" a string the one of my favorites.
*
* Parameters :
* to "switch" a string the one of my favorites.
*
* Parameters :
- * 1 : s
:
string to be hashed.
+ * 1 : s
=
string to be hashed.
*
* Returns : an unsigned long variable with the hashed value.
*
*
* Returns : an unsigned long variable with the hashed value.
*
@@
-454,7
+460,7
@@
int strncmpic(const char *s1, const char *s2, size_t n)
* from a string.
*
* Parameters :
* from a string.
*
* Parameters :
- * 1 : s
:
string to be chomped.
+ * 1 : s
tring =
string to be chomped.
*
* Returns : chomped string
*
*
* Returns : chomped string
*
@@
-817,7
+823,7
@@
int simplematch(char *pattern, char *text)
}
else
{
}
else
{
- /* In wildcard mode, just try again after fail
i
ure */
+ /* In wildcard mode, just try again after failure */
if(wildcard)
{
pat = fallback;
if(wildcard)
{
pat = fallback;
@@
-852,7
+858,7
@@
int simplematch(char *pattern, char *text)
* 1 : string = string to be duplicated
* 2 : len = number of bytes to duplicate
*
* 1 : string = string to be duplicated
* 2 : len = number of bytes to duplicate
*
- * Returns : pointer to copy, or NULL if fail
i
ure
+ * Returns : pointer to copy, or NULL if failure
*
*********************************************************************/
char *bindup(const char *string, size_t len)
*
*********************************************************************/
char *bindup(const char *string, size_t len)
@@
-884,8
+890,8
@@
char *bindup(const char *string, size_t len)
* the filename.
*
* Parameters :
* the filename.
*
* Parameters :
- * 1 : dir
:
Name of directory or NULL for none.
- * 2 : file
:
Name of file. Should not be NULL or empty.
+ * 1 : dir
=
Name of directory or NULL for none.
+ * 2 : file
=
Name of file. Should not be NULL or empty.
*
* Returns : "dir/file" (Or on windows, "dir\file").
* It allocates the string on the heap. Caller frees.
*
* Returns : "dir/file" (Or on windows, "dir\file").
* It allocates the string on the heap. Caller frees.