summaryrefslogtreecommitdiff
path: root/src/missing-string.c
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2003-05-27 10:19:28 +0000
committerMoritz Schulte <mo@g10code.com>2003-05-27 10:19:28 +0000
commit86c516760de2cd42c5643850d4377334cbaf6724 (patch)
tree6f01e450a3c7399d4863dd77af04f9c7eb554102 /src/missing-string.c
parent4d6cbfe707062a0da4bb2e442b9057369f6a1e64 (diff)
downloadlibgcrypt-86c516760de2cd42c5643850d4377334cbaf6724.tar.gz
2003-05-22 Moritz Schulte <moritz@g10code.com>
* missing-string.c (strsep): Removed function.
Diffstat (limited to 'src/missing-string.c')
-rw-r--r--src/missing-string.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/missing-string.c b/src/missing-string.c
index e2397ff2..437d66f2 100644
--- a/src/missing-string.c
+++ b/src/missing-string.c
@@ -39,65 +39,6 @@ stpcpy(char *a,const char *b)
#endif
-#ifndef HAVE_STRSEP
-/* code taken from glibc-2.2.1/sysdeps/generic/strsep.c */
-char *
-strsep (char **stringp, const char *delim)
-{
- char *begin, *end;
-
- begin = *stringp;
- if (begin == NULL)
- return NULL;
-
- /* A frequent case is when the delimiter string contains only one
- character. Here we don't need to call the expensive `strpbrk'
- function and instead work using `strchr'. */
- if (delim[0] == '\0' || delim[1] == '\0')
- {
- char ch = delim[0];
-
- if (ch == '\0')
- end = NULL;
- else
- {
- if (*begin == ch)
- end = begin;
- else if (*begin == '\0')
- end = NULL;
- else
- end = strchr (begin + 1, ch);
- }
- }
- else
- /* Find the end of the token. */
- end = strpbrk (begin, delim);
-
- if (end)
- {
- /* Terminate the token and set *STRINGP past NUL character. */
- *end++ = '\0';
- *stringp = end;
- }
- else
- /* No more delimiters; this is the last token. */
- *stringp = NULL;
-
- return begin;
-}
-#endif /*HAVE_STRSEP*/
-
-/* #ifndef HAVE_STRLWR */
-/* char * */
-/* strlwr(char *s) */
-/* { */
-/* char *p; */
-/* for(p=s; *p; p++ ) */
-/* *p = tolower(*p); */
-/* return s; */
-/* } */
-/* #endif */
-
#ifndef HAVE_STRCASECMP
int
strcasecmp( const char *a, const char *b )