/*
* Modified as part of the krb5-strength project as follows:
*
- * 2007-03-23 Russ Allbery <rra@stanford.edu>
+ * 2007-03-23 Russ Allbery <eagle@eyrie.org>
* - Additional system includes for other functions.
+ * 2009-10-14 Russ Allbery <eagle@eyrie.org>
+ * - Add ANSI C protototypes for all functions.
+ * - Remove unused Clone function.
+ * 2016-11-06 Russ Allbery <eagle@eyrie.org>
+ * - Remove unused vers_id to silence GCC warnings.
*/
#include <string.h>
#include "packer.h"
-static char vers_id[] = "stringlib.c : v2.3p2 Alec Muffett 18 May 1993";
-
char
-Chop(string)
- register char *string;
+Chop(char *string)
{
register char c;
register char *ptr;
}
char *
-Trim(string)
- register char *string;
+Trim(char *string)
{
register char *ptr;
for (ptr = string; *ptr; ptr++);
return (ptr);
}
-
-char *
-Clone(string)
- char *string;
-{
- register char *retval;
- retval = (char *) malloc(strlen(string) + 1);
- if (retval)
- {
- strcpy(retval, string);
- }
- return (retval);
-}