Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
36e56f36
Commit
36e56f36
authored
16 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
remove Curl_strcasestr() since there is no code at all using this function!
parent
0a9984c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/strequal.c
+0
-23
0 additions, 23 deletions
lib/strequal.c
with
0 additions
and
23 deletions
lib/strequal.c
+
0
−
23
View file @
36e56f36
...
...
@@ -76,29 +76,6 @@ int curl_strnequal(const char *first, const char *second, size_t max)
#endif
}
/*
* Curl_strcasestr() finds the first occurrence of the substring needle in the
* string haystack. The terminating `\0' characters are not compared. The
* matching is done CASE INSENSITIVE, which thus is the difference between
* this and strstr().
*/
char
*
Curl_strcasestr
(
const
char
*
haystack
,
const
char
*
needle
)
{
#if defined(HAVE_STRCASESTR)
return
strcasestr
(
haystack
,
needle
);
#else
size_t
nlen
=
strlen
(
needle
);
size_t
hlen
=
strlen
(
haystack
);
while
(
hlen
--
>=
nlen
)
{
if
(
curl_strnequal
(
haystack
,
needle
,
nlen
))
return
(
char
*
)
haystack
;
haystack
++
;
}
return
NULL
;
#endif
}
#ifndef HAVE_STRLCAT
/*
* The strlcat() function appends the NUL-terminated string src to the end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment